本文整理汇总了C#中Mono.CSharp.BlockVariableDeclaration类的典型用法代码示例。如果您正苦于以下问题:C# BlockVariableDeclaration类的具体用法?C# BlockVariableDeclaration怎么用?C# BlockVariableDeclaration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BlockVariableDeclaration类属于Mono.CSharp命名空间,在下文中一共展示了BlockVariableDeclaration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Visit
public virtual object Visit (BlockVariableDeclaration blockVariableDeclaration)
{
return null;
}
示例2: AsLocalFunction
public AsLocalFunction (Location loc, string name, AnonymousMethodExpression methodExpr, BlockVariableDeclaration varDecl)
{
this.loc = loc;
this.Name = name;
this.MethodExpr = methodExpr;
this.VarDecl = varDecl;
}
示例3: end_anonymous
/*
* Completes the anonymous method processing, if lambda_expr is null, this
* means that we have a Statement instead of an Expression embedded
*/
AnonymousMethodExpression end_anonymous (ParametersBlock anon_block)
{
AnonymousMethodExpression retval;
if (async_block)
anon_block.IsAsync = true;
current_anonymous_method.Block = anon_block;
retval = current_anonymous_method;
async_block = (bool) oob_stack.Pop ();
current_variable = (BlockVariableDeclaration) oob_stack.Pop ();
current_local_parameters = (ParametersCompiled) oob_stack.Pop ();
current_anonymous_method = (AnonymousMethodExpression) oob_stack.Pop ();
return retval;
}
示例4: case_751
void case_751()
{
yyVal = current_variable;
current_variable = null;
lbag.AddLocation (yyVal, GetLocation (yyVals[-6+yyTop]), GetLocation (yyVals[0+yyTop]));
}
示例5: case_924
void case_924()
#line 6211 "cs-parser.jay"
{
start_block (GetLocation (yyVals[-2+yyTop]));
current_block.IsCompilerGenerated = true;
var lt = (Tokenizer.LocatedToken) yyVals[0+yyTop];
var li = new LocalVariable (current_block, lt.Value, LocalVariable.Flags.UsingVariable | LocalVariable.Flags.Used, lt.Location);
current_block.AddLocalName (li);
current_variable = new Using.VariableDeclaration ((FullNamedExpression) yyVals[-1+yyTop], li);
}
示例6: case_790
void case_790()
#line 5313 "cs-parser.jay"
{
if (current_variable.Initializer != null) {
lbag.AddLocation (current_variable, GetLocation (yyVals[-6+yyTop]), savedLocation, GetLocation (yyVals[0+yyTop]));
} else {
lbag.AddLocation (current_variable, GetLocation (yyVals[-6+yyTop]), GetLocation (yyVals[0+yyTop]));
}
yyVal = current_variable;;
current_variable = null;
}
示例7: case_865
void case_865()
#line 5781 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例8: case_849
void case_849()
#line 5426 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例9: case_788
void case_788()
#line 5300 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
lbag.AppendTo (yyVal, GetLocation (yyVals[0+yyTop]));
}
示例10: case_882
void case_882()
#line 5864 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例11: case_800
void case_800()
#line 5103 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例12: case_877
void case_877()
#line 5832 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例13: case_825
void case_825()
#line 5469 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例14: case_811
void case_811()
#line 5197 "cs-parser.jay"
{
yyVal = current_variable;
current_variable = null;
}
示例15: case_883
void case_883()
{
yyVal = current_variable;
current_variable = null;
}