本文整理汇总了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;
}
开发者ID:0xb1dd1e,项目名称:NRefactory,代码行数:8,代码来源:CSharpParser.cs
示例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;
}
开发者ID:pgoron,项目名称:monodevelop,代码行数:7,代码来源:CSharpParser.cs
示例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:
开发者ID:segaman,项目名称:NRefactory,代码行数:67,代码来源:cs-parser.cs
示例4: Visit
public virtual object Visit (ArglistAccess argListAccessExpression)
{
return null;
}
开发者ID:KAW0,项目名称:Alter-Native,代码行数:4,代码来源:visit.cs
示例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"
开发者ID:Ein,项目名称:monodevelop,代码行数:67,代码来源:cs-parser.cs
示例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;
}
开发者ID:speier,项目名称:shake,代码行数:67,代码来源:cs-parser.cs
示例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"
{
开发者ID:runefs,项目名称:Marvin,代码行数:67,代码来源:cs-parser.cs
注:本文中的Mono.CSharp.ArglistAccess类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论