本文整理汇总了C#中Mono.CSharp.ArglistAccess类的典型用法代码示例。如果您正苦于以下问题:C# ArglistAccess类的具体用法?C# ArglistAccess怎么用?C# ArglistAccess使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ArglistAccess类属于Mono.CSharp命名空间,在下文中一共展示了ArglistAccess类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Visit
public override object Visit(ArglistAccess argListAccessExpression)
{
var result = new UndocumentedExpression {
UndocumentedExpressionType = UndocumentedExpressionType.ArgListAccess
};
result.AddChild(new CSharpTokenNode(Convert(argListAccessExpression.Location), UndocumentedExpression.ArglistKeywordRole), UndocumentedExpression.ArglistKeywordRole);
return result;
}
示例2: Visit
public override object Visit (ArglistAccess argListAccessExpression)
{
var result = new ArgListExpression ();
result.IsAccess = true;
result.AddChild (new CSharpTokenNode (Convert (argListAccessExpression.Location), "__arglist".Length), ArgListExpression.Roles.Keyword);
return result;
}
示例3: yyparse
//.........这里部分代码省略.........
case 665:
case_665();
break;
case 666:
case_666();
break;
case 667:
#line 4669 "cs-parser.jay"
{
valid_param_mod = ParameterModifierType.Ref | ParameterModifierType.Out;
}
break;
case 668:
case_668();
break;
case 669:
case_669();
break;
case 670:
#line 4683 "cs-parser.jay"
{
valid_param_mod = ParameterModifierType.Ref | ParameterModifierType.Out;
}
break;
case 671:
case_671();
break;
case 672:
case_672();
break;
case 678:
#line 4708 "cs-parser.jay"
{
yyVal = new ArglistAccess (GetLocation (yyVals[0+yyTop]));
}
break;
case 679:
case_679();
break;
case 680:
case_680();
break;
case 681:
case_681();
break;
case 683:
#line 4737 "cs-parser.jay"
{
yyVal = new BooleanExpression ((Expression) yyVals[0+yyTop]);
}
break;
case 684:
#line 4749 "cs-parser.jay"
{
}
break;
case 685:
case_685();
break;
case 686:
case_686();
break;
case 687:
case_687();
break;
case 688:
示例4: Visit
public virtual object Visit (ArglistAccess argListAccessExpression)
{
return null;
}
示例5: yyparse
//.........这里部分代码省略.........
case 616:
case_616();
break;
case 619:
#line 4118 "cs-parser.jay"
{
start_block (lexer.Location);
}
break;
case 620:
case_620();
break;
case 622:
case_622();
break;
case 623:
case_623();
break;
case 624:
case_624();
break;
case 625:
case_625();
break;
case 626:
case_626();
break;
case 627:
case_627();
break;
case 633:
#line 4179 "cs-parser.jay"
{
yyVal = new ArglistAccess (GetLocation (yyVals[0+yyTop]));
}
break;
case 635:
#line 4190 "cs-parser.jay"
{
yyVal = new BooleanExpression ((Expression) yyVals[0+yyTop]);
}
break;
case 636:
#line 4203 "cs-parser.jay"
{
lexer.ConstraintsParsing = true;
}
break;
case 637:
case_637();
break;
case 638:
case_638();
break;
case 639:
case_639();
break;
case 640:
case_640();
break;
case 641:
#line 4237 "cs-parser.jay"
{ yyVal = null; }
break;
case 642:
#line 4239 "cs-parser.jay"
示例6: yyparse
//.........这里部分代码省略.........
{
var decls = (List<object>) yyVals[-2+yyTop];
decls.Add (yyVals[0+yyTop]);
yyVal = yyVals[-2+yyTop];
}
break;
case 144:
#line 1178 "cs-parser.jay"
{
yyVal = new VariableDeclaration ((Tokenizer.LocatedToken) yyVals[-2+yyTop], (Expression) yyVals[0+yyTop]);
}
break;
case 145:
#line 1182 "cs-parser.jay"
{
yyVal = new VariableDeclaration ((Tokenizer.LocatedToken) yyVals[0+yyTop], null);
}
break;
case 146:
#line 1186 "cs-parser.jay"
{
yyVal = null;
}
break;
case 149:
#line 1195 "cs-parser.jay"
{
yyVal = new StackAlloc ((Expression) yyVals[-3+yyTop], (Expression) yyVals[-1+yyTop], GetLocation (yyVals[-4+yyTop]));
}
break;
case 150:
#line 1199 "cs-parser.jay"
{
yyVal = new ArglistAccess (GetLocation (yyVals[0+yyTop]));
}
break;
case 151:
#line 1203 "cs-parser.jay"
{
Report.Error (1575, GetLocation (yyVals[-1+yyTop]), "A stackalloc expression requires [] after type");
yyVal = new StackAlloc ((Expression) yyVals[0+yyTop], null, GetLocation (yyVals[-1+yyTop]));
}
break;
case 152:
#line 1211 "cs-parser.jay"
{
variables_bucket.Clear ();
if (yyVals[0+yyTop] != null)
variables_bucket.Add (yyVals[0+yyTop]);
yyVal = variables_bucket;
}
break;
case 153:
#line 1218 "cs-parser.jay"
{
var decls = (List<object>) yyVals[-2+yyTop];
decls.Add (yyVals[0+yyTop]);
yyVal = yyVals[-2+yyTop];
}
break;
case 154:
#line 1227 "cs-parser.jay"
{
++lexer.parsing_block;
lexer.parsing_generic_declaration = false;
}
示例7: yyparse
//.........这里部分代码省略.........
start_anonymous (true, (ParametersCompiled) yyVals[-2+yyTop], false, GetLocation (yyVals[-4+yyTop]));
}
break;
case 645:
#line 4550 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = end_anonymous ((ParametersBlock) yyVals[0+yyTop]);
lbag.AddLocation (yyVal, GetLocation (yyVals[-3+yyTop]), GetLocation (yyVals[-2+yyTop]));
}
break;
case 646:
#line 4555 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
valid_param_mod = ParameterModifierType.Ref | ParameterModifierType.Out;
}
break;
case 647:
#line 4559 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
valid_param_mod = 0;
start_anonymous (true, (ParametersCompiled) yyVals[-2+yyTop], true, GetLocation (yyVals[-5+yyTop]));
}
break;
case 648:
#line 4564 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = end_anonymous ((ParametersBlock) yyVals[0+yyTop]);
lbag.AddLocation (yyVal, GetLocation (yyVals[-7+yyTop]), GetLocation (yyVals[-3+yyTop]), GetLocation (yyVals[-2+yyTop]));
}
break;
case 654:
#line 4580 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = new ArglistAccess (GetLocation (yyVals[0+yyTop]));
}
break;
case 655:
#line 4587 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = new RefValueExpr ((Expression) yyVals[-3+yyTop], (FullNamedExpression) yyVals[-1+yyTop], GetLocation (yyVals[-5+yyTop]));
lbag.AddLocation (yyVal, GetLocation (yyVals[-4+yyTop]), GetLocation (yyVals[-2+yyTop]), GetLocation (yyVals[0+yyTop]));
}
break;
case 656:
#line 4592 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = new RefTypeExpr ((Expression) yyVals[-1+yyTop], GetLocation (yyVals[-3+yyTop]));
lbag.AddLocation (yyVal, GetLocation (yyVals[-2+yyTop]), GetLocation (yyVals[0+yyTop]));
}
break;
case 657:
#line 4597 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = new MakeRefExpr ((Expression) yyVals[-1+yyTop], GetLocation (yyVals[-3+yyTop]));
lbag.AddLocation (yyVal, GetLocation (yyVals[-2+yyTop]), GetLocation (yyVals[0+yyTop]));
}
break;
case 659:
#line 4609 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = new BooleanExpression ((Expression) yyVals[0+yyTop]);
}
break;
case 660:
#line 4622 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{