本文整理汇总了C#中Boo.Lang.Compiler.Ast.SlicingExpression.set_Target方法的典型用法代码示例。如果您正苦于以下问题:C# SlicingExpression.set_Target方法的具体用法?C# SlicingExpression.set_Target怎么用?C# SlicingExpression.set_Target使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Boo.Lang.Compiler.Ast.SlicingExpression
的用法示例。
在下文中一共展示了SlicingExpression.set_Target方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: slicing_expression
public Expression slicing_expression()
{
Expression target = null;
IToken token = null;
IToken token2 = null;
SlicingExpression se = null;
MethodInvocationExpression expression3 = null;
ExpressionCollection ec = null;
try
{
target = this.atom();
while (true)
{
while ((this.LA(1) == 0x44) && tokenSet_54_.member(this.LA(2)))
{
token = this.LT(1);
this.match(0x44);
if (base.inputState.guessing == 0)
{
se = new SlicingExpression(ToLexicalInfo(token));
se.set_Target(target);
target = se;
}
this.slice(se);
while (this.LA(1) == 0x43)
{
this.match(0x43);
this.slice(se);
}
this.match(0x45);
}
if ((this.LA(1) == 0x41) && tokenSet_55_.member(this.LA(2)))
{
this.match(0x41);
target = this.member_reference_expression(target);
}
else
{
if ((this.LA(1) != 0x3f) || !tokenSet_22_.member(this.LA(2)))
{
return target;
}
token2 = this.LT(1);
this.match(0x3f);
if (base.inputState.guessing == 0)
{
expression3 = new MethodInvocationExpression(ToLexicalInfo(token2));
expression3.set_Target(target);
target = expression3;
ec = expression3.get_Arguments();
}
this.expression_list(ec);
this.match(0x40);
}
}
}
catch (RecognitionException exception)
{
if (base.inputState.guessing != 0)
{
throw;
}
this.reportError(exception);
this.recover(exception, tokenSet_20_);
return target;
}
return target;
}