本文整理汇总了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;
}
示例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;
}
示例3: UnaryEx
public UnaryEx(Position position, Operations operation, Expression/*!*/ expr)
: base(position)
{
Debug.Assert(expr != null);
this.operation = operation;
this.expr = expr;
}
示例4: ActualParam
public ActualParam(Position p, Expression param, bool ampersand)
: base(p)
{
Debug.Assert(param != null);
this.expression = param;
this.ampersand = ampersand;
}
示例5: ActualParam
public ActualParam(Text.Span p, Expression param, Flags flags)
: base(p)
{
Debug.Assert(param != null);
_expression = param;
_flags = flags;
}
示例6: ValueAssignEx
public ValueAssignEx(Text.Span span, Operations operation, VariableUse/*!*/ lvalue, Expression/*!*/ rvalue)
: base(span)
{
this.lvalue = lvalue;
this.rvalue = rvalue;
this.operation = operation;
}
示例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;
}
示例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;
}
示例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;
}
示例10: InstanceOfEx
public InstanceOfEx(Position position, Expression/*!*/ expression, TypeRef/*!*/ classNameRef)
: base(position)
{
Debug.Assert(expression != null && classNameRef != null);
this.expression = expression;
this.classNameRef = classNameRef;
}
示例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;
}
示例12: ItemUse
public ItemUse(Position p, VariableUse/*!*/ array, Expression index)
: base(p)
{
Debug.Assert(array != null);
this.array = array;
this.index = index;
}
示例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;
}
示例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;
}
示例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;
}