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


C# AST.Expression類代碼示例

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


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

示例1: ValueAssignEx

		public ValueAssignEx(Position position, Operations operation, VariableUse/*!*/ lvalue, Expression/*!*/ rvalue)
			: base(position)
		{
			this.lvalue = lvalue;
			this.rvalue = rvalue;
			this.operation = operation;
		}
開發者ID:kripper,項目名稱:Phalanger,代碼行數:7,代碼來源:AssignEx.cs

示例2: RefAssignEx

		public RefAssignEx(Text.Span span, VariableUse/*!*/ lvalue, Expression/*!*/ rvalue)
			: base(span)
		{
			Debug.Assert(rvalue is VarLikeConstructUse || rvalue is NewEx);
			this.lvalue = lvalue;
			this.rvalue = rvalue;
		}
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:7,代碼來源:AssignEx.cs

示例3: UnaryEx

		public UnaryEx(Position position, Operations operation, Expression/*!*/ expr)
			: base(position)
		{
			Debug.Assert(expr != null);
			this.operation = operation;
			this.expr = expr;
		}
開發者ID:Ashod,項目名稱:Phalanger,代碼行數:7,代碼來源:UnaryEx.cs

示例4: ActualParam

		public ActualParam(Position p, Expression param, bool ampersand)
			: base(p)
		{
			Debug.Assert(param != null);
			this.expression = param;
			this.ampersand = ampersand;
		}
開發者ID:Ashod,項目名稱:Phalanger,代碼行數:7,代碼來源:CallSignature.cs

示例5: ActualParam

        public ActualParam(Text.Span p, Expression param, Flags flags)
			: base(p)
		{
			Debug.Assert(param != null);
			_expression = param;
            _flags = flags;
		}
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:7,代碼來源:CallSignature.cs

示例6: ValueAssignEx

		public ValueAssignEx(Text.Span span, Operations operation, VariableUse/*!*/ lvalue, Expression/*!*/ rvalue)
			: base(span)
		{
			this.lvalue = lvalue;
			this.rvalue = rvalue;
			this.operation = operation;
		}
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:7,代碼來源:AssignEx.cs

示例7: InstanceOfEx

		public InstanceOfEx(Text.Span span, Expression/*!*/ expression, TypeRef/*!*/ classNameRef)
            : base(span)
		{
			Debug.Assert(expression != null && classNameRef != null);

			this.expression = expression;
			this.classNameRef = classNameRef;
		}
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:8,代碼來源:NewAndInstanceof.cs

示例8: SwitchStmt

		public SwitchStmt(Text.Span span, Expression/*!*/ switchValue, List<SwitchItem>/*!*/ switchItems)
			: base(span)
		{
			Debug.Assert(switchValue != null && switchItems != null);

			this.switchValue = switchValue;
			this.switchItems = switchItems;
		}
開發者ID:kaviarasankk,項目名稱:Phalanger,代碼行數:8,代碼來源:SwitchStmt.cs

示例9: BinaryEx

		public BinaryEx(Position position, Operations operation, Expression/*!*/ leftExpr, Expression/*!*/ rightExpr)
			: base(position)
		{
			Debug.Assert(leftExpr != null && rightExpr != null);
			this.operation = operation;
			this.leftExpr = leftExpr;
			this.rightExpr = rightExpr;
		}
開發者ID:Ashod,項目名稱:Phalanger,代碼行數:8,代碼來源:BinaryEx.cs

示例10: InstanceOfEx

		public InstanceOfEx(Position position, Expression/*!*/ expression, TypeRef/*!*/ classNameRef)
			: base(position)
		{
			Debug.Assert(expression != null && classNameRef != null);

			this.expression = expression;
			this.classNameRef = classNameRef;
		}
開發者ID:kripper,項目名稱:Phalanger,代碼行數:8,代碼來源:NewAndInstanceof.cs

示例11: YieldEx

        /// <summary>
        /// Initializes new instance of <see cref="YieldEx"/>.
        /// </summary>
        public YieldEx(Position position, Expression keyEx, Expression valueEx)
            : base(position)
        {
            if (keyEx != null && valueEx == null) throw new ArgumentException();

            _keyEx = keyEx;
            _valueEx = valueEx;
        }
開發者ID:kripper,項目名稱:Phalanger,代碼行數:11,代碼來源:YieldEx.cs

示例12: ItemUse

		public ItemUse(Position p, VariableUse/*!*/ array, Expression index)
			: base(p)
		{
			Debug.Assert(array != null);

			this.array = array;
			this.index = index;
		}
開發者ID:hansdude,項目名稱:Phalanger,代碼行數:8,代碼來源:ItemUse.cs

示例13: SwitchStmt

		public SwitchStmt(Position position, Expression/*!*/ switchValue, List<SwitchItem>/*!*/ switchItems)
			: base(position)
		{
			Debug.Assert(switchValue != null && switchItems != null);

			this.switchValue = switchValue;
			this.switchItems = switchItems;
		}
開發者ID:hansdude,項目名稱:Phalanger,代碼行數:8,代碼來源:SwitchStmt.cs

示例14: YieldEx

        /// <summary>
        /// Initializes new instance of <see cref="YieldEx"/>.
        /// </summary>
        public YieldEx(Text.Span span, Expression keyEx, Expression valueEx)
            : base(span)
        {
            if (keyEx != null && valueEx == null) throw new ArgumentException();

            _keyEx = keyEx;
            _valueEx = valueEx;
        }
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:11,代碼來源:YieldEx.cs

示例15: ItemUse

        public ItemUse(Position p, VarLikeConstructUse/*!*/ array, Expression index, bool functionArrayDereferencing = false)
			: base(p)
		{
			Debug.Assert(array != null);

			this.array = array;
			this.index = index;
            this.functionArrayDereferencing = functionArrayDereferencing;
		}
開發者ID:Ashod,項目名稱:Phalanger,代碼行數:9,代碼來源:ItemUse.cs


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