本文整理汇总了C#中Mono.CSharp.Block.CreateSwitchBlock方法的典型用法代码示例。如果您正苦于以下问题:C# Block.CreateSwitchBlock方法的具体用法?C# Block.CreateSwitchBlock怎么用?C# Block.CreateSwitchBlock使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CSharp.Block
的用法示例。
在下文中一共展示了Block.CreateSwitchBlock方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: yyparse
//.........这里部分代码省略.........
case 770:
case_770();
break;
case 773:
case_773();
break;
case 774:
case_774();
break;
case 775:
#line 4954 "cs-parser.jay"
{
start_block (GetLocation (yyVals[0+yyTop]));
}
break;
case 776:
case_776();
break;
case 777:
case_777();
break;
case 779:
case_779();
break;
case 780:
case_780();
break;
case 781:
case_781();
break;
case 782:
#line 4998 "cs-parser.jay"
{
current_block = current_block.CreateSwitchBlock (lexer.Location);
}
break;
case 783:
#line 5002 "cs-parser.jay"
{
yyVal = new SwitchSection ((List<SwitchLabel>) yyVals[-2+yyTop], current_block);
}
break;
case 784:
case_784();
break;
case 785:
case_785();
break;
case 786:
case_786();
break;
case 787:
#line 5031 "cs-parser.jay"
{
yyVal = new SwitchLabel (null, GetLocation (yyVals[0+yyTop]));
}
break;
case 792:
case_792();
break;
case 793:
case_793();
break;
case 794:
case_794();
break;
示例2: yyparse
//.........这里部分代码省略.........
case 826:
case_826();
break;
case 827:
case_827();
break;
case 828:
#line 5548 "cs-parser.jay"
{
start_block (GetLocation (yyVals[0+yyTop]));
}
break;
case 829:
case_829();
break;
case 830:
case_830();
break;
case 831:
case_831();
break;
case 833:
case_833();
break;
case 834:
case_834();
break;
case 835:
case_835();
break;
case 836:
#line 5599 "cs-parser.jay"
{
current_block = current_block.CreateSwitchBlock (lexer.Location);
}
break;
case 837:
#line 5603 "cs-parser.jay"
{
yyVal = new SwitchSection ((List<SwitchLabel>) yyVals[-2+yyTop], current_block);
}
break;
case 838:
case_838();
break;
case 839:
case_839();
break;
case 840:
case_840();
break;
case 841:
case_841();
break;
case 842:
#line 5637 "cs-parser.jay"
{
yyVal = new SwitchLabel (null, GetLocation (yyVals[0+yyTop]));
}
break;
case 847:
case_847();
break;
case 848:
case_848();
break;
示例3: yyparse
//.........这里部分代码省略.........
#line 4586 "cs-parser.jay"
{
yyVal = yyVals[-1+yyTop];
}
break;
case 726:
#line 4593 "cs-parser.jay"
{
Report.Warning (1522, 1, lexer.Location, "Empty switch block");
yyVal = new ArrayList ();
}
break;
case 728:
#line 4602 "cs-parser.jay"
{
ArrayList sections = new ArrayList (4);
sections.Add (yyVals[0+yyTop]);
yyVal = sections;
}
break;
case 729:
#line 4609 "cs-parser.jay"
{
ArrayList sections = (ArrayList) yyVals[-1+yyTop];
sections.Add (yyVals[0+yyTop]);
yyVal = sections;
}
break;
case 730:
#line 4619 "cs-parser.jay"
{
current_block = current_block.CreateSwitchBlock (lexer.Location);
}
break;
case 731:
#line 4623 "cs-parser.jay"
{
yyVal = new SwitchSection ((ArrayList) yyVals[-2+yyTop], current_block.Explicit);
}
break;
case 732:
#line 4630 "cs-parser.jay"
{
ArrayList labels = new ArrayList (4);
labels.Add (yyVals[0+yyTop]);
yyVal = labels;
}
break;
case 733:
#line 4637 "cs-parser.jay"
{
ArrayList labels = (ArrayList) (yyVals[-1+yyTop]);
labels.Add (yyVals[0+yyTop]);
yyVal = labels;
}
break;
case 734:
#line 4647 "cs-parser.jay"
{
yyVal = new SwitchLabel ((Expression) yyVals[-1+yyTop], (Location) yyVals[-2+yyTop]);
}
break;