当前位置: 首页>>代码示例>>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;未经允许,请勿转载。