當前位置: 首頁>>代碼示例>>C#>>正文


C# CSharp.SimpleMemberName類代碼示例

本文整理匯總了C#中Mono.CSharp.SimpleMemberName的典型用法代碼示例。如果您正苦於以下問題:C# SimpleMemberName類的具體用法?C# SimpleMemberName怎麽用?C# SimpleMemberName使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SimpleMemberName類屬於Mono.CSharp命名空間,在下文中一共展示了SimpleMemberName類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: FieldDeclarator

		public FieldDeclarator (SimpleMemberName name, Expression initializer)
		{
			this.Name = name;
			this.Initializer = initializer;
		}
開發者ID:agallero,項目名稱:mono,代碼行數:5,代碼來源:field.cs

示例2: UsingExternAlias

 public UsingExternAlias(SimpleMemberName alias, Location loc)
     : base(alias, null, loc)
 {
 }
開發者ID:exodrifter,項目名稱:mcs-ICodeCompiler,代碼行數:4,代碼來源:namespace.cs

示例3: UsingAliasNamespace

 public UsingAliasNamespace(SimpleMemberName alias, ATypeNameExpression expr, Location loc)
     : base(expr, loc)
 {
     this.alias = alias;
 }
開發者ID:exodrifter,項目名稱:mcs-ICodeCompiler,代碼行數:5,代碼來源:namespace.cs

示例4: yyparse


//.........這裏部分代碼省略.........
		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);
			}
		}

		constraints.Add (new_constraint);
		yyVal = constraints;
	  }
  break;
case 662:
#line 4322 "cs-parser.jay"
  {
		var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop];
		yyVal = new Constraints (new SimpleMemberName (lt.Value, lt.Location), (List<FullNamedExpression>) yyVals[0+yyTop], GetLocation (yyVals[-3+yyTop]));
	  }
  break;
case 663:
#line 4330 "cs-parser.jay"
  {
		var constraints = new List<FullNamedExpression> (1);
		constraints.Add ((FullNamedExpression) yyVals[0+yyTop]);
		yyVal = constraints;
	  }
  break;
case 664:
#line 4336 "cs-parser.jay"
  {
		var constraints = (List<FullNamedExpression>) yyVals[-2+yyTop];
		var prev = constraints [constraints.Count - 1] as SpecialContraintExpr;
		if (prev != null && (prev.Constraint & SpecialConstraint.Constructor) != 0) {			
			Report.Error (401, GetLocation (yyVals[-1+yyTop]), "The `new()' constraint must be the last constraint specified");
		}
		
		prev = yyVals[0+yyTop] as SpecialContraintExpr;
		if (prev != null) {
			if ((prev.Constraint & (SpecialConstraint.Class | SpecialConstraint.Struct)) != 0) {
				Report.Error (449, prev.Location, "The `class' or `struct' constraint must be the first constraint specified");			
			} else {
			 	prev = constraints [0] as SpecialContraintExpr;
			 	if (prev != null && (prev.Constraint & SpecialConstraint.Struct) != 0) {			
					Report.Error (451, GetLocation (yyVals[0+yyTop]), "The `new()' constraint cannot be used with the `struct' constraint");
				}
			}
		}

		constraints.Add ((FullNamedExpression) yyVals[0+yyTop]);
開發者ID:speier,項目名稱:shake,代碼行數:67,代碼來源:cs-parser.cs

示例5: FieldDeclarator

		// PlayScript - field declarators have types
		public FieldDeclarator (SimpleMemberName name, Expression initializer, FullNamedExpression type_expr)
		{
			this.Name = name;
			this.TypeExpression = type_expr;
			this.Initializer = initializer;
		}
開發者ID:rlfqudxo,項目名稱:playscript-mono,代碼行數:7,代碼來源:field.cs

示例6: Constraints

		public Constraints (SimpleMemberName tparam, List<FullNamedExpression> constraints, Location loc)
		{
			this.tparam = tparam;
			this.constraints = constraints;
			this.loc = loc;
		}
開發者ID:ikvm,項目名稱:mono,代碼行數:6,代碼來源:generic.cs


注:本文中的Mono.CSharp.SimpleMemberName類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。