本文整理汇总了C#中Boo.Lang.Compiler.Ast.Block.get_Statements方法的典型用法代码示例。如果您正苦于以下问题:C# Block.get_Statements方法的具体用法?C# Block.get_Statements怎么用?C# Block.get_Statements使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boo.Lang.Compiler.Ast.Block
的用法示例。
在下文中一共展示了Block.get_Statements方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: for_c
public Statement for_c(Block container)
{
Statement statement = null;
try
{
Expression expression;
Expression expression2;
WhileStatement statement3;
Block block;
string str;
switch (this.LA(1))
{
case 0x2d:
this.declaration_statement(container);
if (base.inputState.guessing == 0)
{
statement = container.get_Statements().get_Item(-1) as DeclarationStatement;
if (statement != null)
{
statement.Annotate("PrivateScope");
}
}
break;
case 12:
case 15:
case 0x13:
case 0x1b:
case 0x1d:
case 0x27:
case 40:
case 0x2a:
case 0x2c:
case 0x3b:
case 60:
case 0x3d:
case 0x3f:
case 0x44:
case 0x4f:
case 80:
case 0x52:
case 0x58:
case 0x67:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
this.expression_statement(container);
break;
case 0x4d:
break;
default:
throw new NoViableAltException(this.LT(1), this.getFilename());
}
this.match(0x4d);
switch (this.LA(1))
{
case 12:
case 15:
case 0x13:
case 0x1b:
case 0x1d:
case 0x27:
case 40:
case 0x2a:
case 0x2c:
case 0x3b:
case 60:
case 0x3d:
case 0x3f:
case 0x44:
case 0x4f:
case 80:
case 0x52:
case 0x58:
case 0x67:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
expression = this.expression();
break;
case 0x4d:
break;
default:
throw new NoViableAltException(this.LT(1), this.getFilename());
}
this.match(0x4d);
switch (this.LA(1))
{
case 12:
case 15:
case 0x13:
case 0x1b:
//.........这里部分代码省略.........
示例2: EndsWithBreak
public static bool EndsWithBreak(Block block)
{
return ((block.get_Statements().Count != 0) ? (block.get_Statements().get_Item(-1) is BreakStatement) : false);
}