本文整理匯總了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;
}