本文整理汇总了C#中Mono.CSharp.TypeContainer.AddBasesForPart方法的典型用法代码示例。如果您正苦于以下问题:C# TypeContainer.AddBasesForPart方法的具体用法?C# TypeContainer.AddBasesForPart怎么用?C# TypeContainer.AddBasesForPart使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mono.CSharp.TypeContainer
的用法示例。
在下文中一共展示了TypeContainer.AddBasesForPart方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: yyparse
//.........这里部分代码省略.........
{ yyVal = Modifiers.SEALED; }
break;
case 648:
#line 4266 "cs-parser.jay"
{ yyVal = Modifiers.STATIC; }
break;
case 649:
#line 4267 "cs-parser.jay"
{ yyVal = Modifiers.READONLY; }
break;
case 650:
#line 4268 "cs-parser.jay"
{ yyVal = Modifiers.VIRTUAL; }
break;
case 651:
#line 4269 "cs-parser.jay"
{ yyVal = Modifiers.OVERRIDE; }
break;
case 652:
#line 4270 "cs-parser.jay"
{ yyVal = Modifiers.EXTERN; }
break;
case 653:
#line 4271 "cs-parser.jay"
{ yyVal = Modifiers.VOLATILE; }
break;
case 654:
#line 4272 "cs-parser.jay"
{ yyVal = Modifiers.UNSAFE; }
break;
case 657:
#line 4282 "cs-parser.jay"
{
current_container.AddBasesForPart (current_class, (List<FullNamedExpression>) yyVals[0+yyTop]);
}
break;
case 658:
#line 4288 "cs-parser.jay"
{ yyVal = null; }
break;
case 659:
#line 4290 "cs-parser.jay"
{
yyVal = yyVals[0+yyTop];
}
break;
case 660:
#line 4297 "cs-parser.jay"
{
var constraints = new List<Constraints> (1);
constraints.Add ((Constraints) yyVals[0+yyTop]);
yyVal = constraints;
}
break;
case 661:
#line 4303 "cs-parser.jay"
{
var constraints = (List<Constraints>) yyVals[-1+yyTop];
Constraints new_constraint = (Constraints)yyVals[0+yyTop];
foreach (Constraints c in constraints) {
if (new_constraint.TypeParameter.Value == c.TypeParameter.Value) {
Report.Error (409, new_constraint.Location,
"A constraint clause has already been specified for type parameter `{0}'",
new_constraint.TypeParameter.Value);
}