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


C# CSharp.BuilderContext類代碼示例

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


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

示例1: FlagsHandle

			internal FlagsHandle (BuilderContext ec, Options mask, Options val)
			{
				this.ec = ec;
				invmask = ~mask;
				oldval = ec.flags & mask;
				ec.flags = (ec.flags & invmask) | (val & mask);
			}
開發者ID:KAW0,項目名稱:Alter-Native,代碼行數:7,代碼來源:context.cs

示例2: MakeExpression

		public override SLE.Expression MakeExpression (BuilderContext ctx)
		{
			return MakeExpression (ctx, mg.InstanceExpression, mg.BestCandidate, arguments);
		}
開發者ID:rlfqudxo,項目名稱:playscript-mono,代碼行數:4,代碼來源:intrinsics.cs

示例3: MakeExpression

 public override SLE.Expression MakeExpression(BuilderContext ctx)
 {
     return SLE.Expression.Convert (obj.Expression, type.GetMetaInfo ());
 }
開發者ID:speier,項目名稱:shake,代碼行數:4,代碼來源:dynamic.cs

示例4: MakeExpression

		public override System.Linq.Expressions.Expression MakeExpression (BuilderContext ctx)
		{
			return System.Linq.Expressions.Expression.Constant (GetTypedValue (), type.GetMetaInfo ());
		}
開發者ID:jdecuyper,項目名稱:mono,代碼行數:4,代碼來源:constant.cs

示例5: MakeExpression

		public override System.Linq.Expressions.Expression MakeExpression (BuilderContext ctx)
		{
			return System.Linq.Expressions.Expression.Constant (GetValue ());
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:4,代碼來源:constant.cs

示例6: MakeExpression

		public override SLE.Expression MakeExpression (BuilderContext ctx)
		{
			using (ctx.With (BuilderContext.Options.AllCheckStateFlags, true)) {
				return Expr.MakeExpression (ctx);
			}
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:6,代碼來源:expression.cs

示例7: MakeExpression

		public override SLE.Expression MakeExpression (BuilderContext ctx)
		{
#if STATIC
			return base.MakeExpression (ctx);
#else
			return SLE.Expression.Block (expr.MakeExpression (ctx), SLE.Expression.Default (type.GetMetaInfo ()));
#endif
		}
開發者ID:caomw,項目名稱:mono,代碼行數:8,代碼來源:dynamic.cs

示例8: MakeExpression

		public static System.Linq.Expressions.Expression[] MakeExpression (Arguments args, BuilderContext ctx)
		{
			if (args == null || args.Count == 0)
				return null;

			// TODO: implement
			if (args.reordered != null)
				throw new NotImplementedException ();

			var exprs = new System.Linq.Expressions.Expression [args.Count];
			for (int i = 0; i < exprs.Length; ++i) {
				Argument a = (Argument) args.args [i];
				exprs[i] = a.Expr.MakeExpression (ctx);
			}

			return exprs;
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:17,代碼來源:argument.cs

示例9: MakeExpression

		public override System.Linq.Expressions.Expression MakeExpression (BuilderContext ctx)
		{
			if (typed && obj.Expression.Type != type)
				return System.Linq.Expressions.Expression.Convert (obj.Expression, type);

			return obj.Expression;
		}
開發者ID:calumjiao,項目名稱:Mono-Class-Libraries,代碼行數:7,代碼來源:dynamic.cs

示例10: MakeExpression

 //
 // Implemented by all expressions which support conversion from
 // compiler expression to invokable runtime expression. Used by
 // dynamic C# binder.
 //
 public virtual SLE.Expression MakeExpression(BuilderContext ctx)
 {
     throw new NotImplementedException ("MakeExpression for " + GetType ());
 }
開發者ID:speier,項目名稱:shake,代碼行數:9,代碼來源:ecore.cs

示例11: MakeExpression

		public override System.Linq.Expressions.Expression MakeExpression (BuilderContext ctx)
		{
			return Invocation.MakeExpression (ctx, InstanceExpr, method, arguments);
		}
開發者ID:psni,項目名稱:mono,代碼行數:4,代碼來源:delegate.cs

示例12: MakeAssignExpression

 public SLE.Expression MakeAssignExpression(BuilderContext ctx)
 {
     return MakeExpression (ctx);
 }
開發者ID:speier,項目名稱:shake,代碼行數:4,代碼來源:ecore.cs

示例13: MakeExpression

		public static System.Linq.Expressions.Expression[] MakeExpression (Arguments args, BuilderContext ctx)
		{
			if (args == null || args.Count == 0)
				return null;

			var exprs = new System.Linq.Expressions.Expression [args.Count];
			for (int i = 0; i < exprs.Length; ++i) {
				Argument a = args.args [i];
				exprs[i] = a.Expr.MakeExpression (ctx);
			}

			return exprs;
		}
開發者ID:pgoron,項目名稱:monodevelop,代碼行數:13,代碼來源:argument.cs

示例14: MakeAssignExpression

 public SLE.Expression MakeAssignExpression(BuilderContext ctx)
 {
     return obj.Expression;
 }
開發者ID:speier,項目名稱:shake,代碼行數:4,代碼來源:dynamic.cs

示例15: MakeExpression

		public override System.Linq.Expressions.Expression MakeExpression (BuilderContext ctx)
		{
			var tassign = target as IDynamicAssign;
			if (tassign == null)
				throw new InternalErrorException (target.GetType () + " does not support dynamic assignment");

			var target_object = tassign.MakeAssignExpression (ctx, source);

			//
			// Some hacking is needed as DLR does not support void type and requires
			// always have object convertible return type to support caching and chaining
			//
			// We do this by introducing an explicit block which returns RHS value when
			// available or null
			//
			if (target_object.NodeType == System.Linq.Expressions.ExpressionType.Block)
				return target_object;

			System.Linq.Expressions.UnaryExpression source_object;
			if (ctx.HasSet (BuilderContext.Options.CheckedScope)) {
				source_object = System.Linq.Expressions.Expression.ConvertChecked (source.MakeExpression (ctx), target_object.Type);
			} else {
				source_object = System.Linq.Expressions.Expression.Convert (source.MakeExpression (ctx), target_object.Type);
			}

			return System.Linq.Expressions.Expression.Assign (target_object, source_object);
		}
開發者ID:dyxu,項目名稱:vimrc,代碼行數:27,代碼來源:assign.cs


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