本文整理汇总了C#中Boo.Lang.Compiler.Ast.Field.set_Initializer方法的典型用法代码示例。如果您正苦于以下问题:C# Field.set_Initializer方法的具体用法?C# Field.set_Initializer怎么用?C# Field.set_Initializer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boo.Lang.Compiler.Ast.Field
的用法示例。
在下文中一共展示了Field.set_Initializer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: field_member
//.........这里部分代码省略.........
break;
default:
throw new NoViableAltException(this.LT(1), this.getFilename());
}
switch (this.LA(1))
{
case 0x4e:
this.match(0x4e);
expression = this.expression();
break;
case 1:
case 5:
case 8:
case 9:
case 10:
case 12:
case 13:
case 15:
case 0x10:
case 0x12:
case 0x13:
case 20:
case 0x15:
case 0x19:
case 0x1b:
case 0x1d:
case 30:
case 0x1f:
case 0x20:
case 0x21:
case 0x22:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 40:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
case 0x30:
case 0x31:
case 0x3b:
case 60:
case 0x3d:
case 0x3e:
case 0x3f:
case 0x44:
case 0x4d:
case 0x4f:
case 80:
case 0x52:
case 0x58:
case 0x63:
case 0x67:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
break;
default:
throw new NoViableAltException(this.LT(1), this.getFilename());
}
IToken token2 = this.eos();
if (base.inputState.guessing != 0)
{
return node;
}
Field field1 = field = new Field(ToLexicalInfo(token));
field.set_Name(token.getText());
field.set_Type(reference);
field.set_Initializer(expression);
node = field;
if (token2 != null)
{
SetEndSourceLocation(node, token2);
}
this.FlushAttributes(node);
cd.get_Members().Add(node);
}
catch (RecognitionException exception)
{
if (base.inputState.guessing != 0)
{
throw;
}
this.reportError(exception);
this.recover(exception, tokenSet_33_);
return node;
}
return node;
}