本文整理汇总了C#中Mono.CSharp.Block.SetEndLocation方法的典型用法代码示例。如果您正苦于以下问题:C# Block.SetEndLocation方法的具体用法?C# Block.SetEndLocation怎么用?C# Block.SetEndLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CSharp.Block
的用法示例。
在下文中一共展示了Block.SetEndLocation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: yyparse
//.........这里部分代码省略.........
Location l = GetLocation (yyVals[-5+yyTop]);
while (vars.Count > 0) {
var de = vars.Pop ();
stmt = new Using (de.Item1, de.Item2, stmt, l);
}
current_block.AddStatement (stmt);
yyVal = end_block (lexer.Location);
}
break;
case 829:
#line 5400 "cs-parser.jay"
{
start_block (lexer.Location);
}
break;
case 830:
#line 5404 "cs-parser.jay"
{
current_block.AddStatement (new UsingTemporary ((Expression) yyVals[-3+yyTop], (Statement) yyVals[0+yyTop], GetLocation (yyVals[-5+yyTop])));
yyVal = end_block (lexer.Location);
}
break;
case 831:
#line 5415 "cs-parser.jay"
{
lexer.query_parsing = false;
Linq.AQueryClause from = yyVals[-1+yyTop] as Linq.AQueryClause;
from.Tail.Next = (Linq.AQueryClause)yyVals[0+yyTop];
yyVal = from;
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 832:
#line 5427 "cs-parser.jay"
{
Linq.AQueryClause from = yyVals[-1+yyTop] as Linq.AQueryClause;
from.Tail.Next = (Linq.AQueryClause)yyVals[0+yyTop];
yyVal = from;
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 833:
#line 5438 "cs-parser.jay"
{
lexer.query_parsing = false;
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 834:
#line 5445 "cs-parser.jay"
{
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
示例2: yyparse
//.........这里部分代码省略.........
#line 5916 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
if (yyVals[0+yyTop] is EmptyStatement && lexer.peek_token () == Token.OPEN_BRACE)
Warning_EmptyStatement (GetLocation (yyVals[0+yyTop]));
Using u = new Using ((Expression) yyVals[-2+yyTop], (Statement) yyVals[0+yyTop], GetLocation (yyVals[-4+yyTop]));
lbag.AddStatement (u, GetLocation (yyVals[-3+yyTop]), GetLocation (yyVals[-1+yyTop]));
yyVal = u;
}
break;
case 884:
#line 5928 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
Error_MissingInitializer (lexer.Location);
}
break;
case 885:
#line 5932 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
current_variable.Initializer = (Expression) yyVals[0+yyTop];
yyVal = current_variable;
}
break;
case 886:
#line 5943 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
lexer.query_parsing = false;
Linq.AQueryClause from = yyVals[-1+yyTop] as Linq.AQueryClause;
from.Tail.Next = (Linq.AQueryClause)yyVals[0+yyTop];
yyVal = from;
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 887:
#line 5955 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
Linq.AQueryClause from = yyVals[-1+yyTop] as Linq.AQueryClause;
from.Tail.Next = (Linq.AQueryClause)yyVals[0+yyTop];
yyVal = from;
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 888:
#line 5966 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
lexer.query_parsing = false;
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}
break;
case 889:
#line 5973 "D:\GitHub\M\Marvin\mcs\cs-parser.jay"
{
yyVal = yyVals[-1+yyTop];
current_block.SetEndLocation (lexer.Location);
current_block = current_block.Parent;
}