public CastExpression CastTo(Type type) { return(new CastExpression { CastType = CastType.CType, Type = AstType.Create(type), Expression = this }); }
public CastExpression CastTo(AstType type) { return(new CastExpression { CastType = CastType.CType, Type = type, Expression = this }); }
public CastExpression(CastType castType, AstType castToType, Expression expression) { CastType = castType; AddChild(castToType, Roles.Type); AddChild(expression, Roles.Expression); }
public InterfaceMemberSpecifier(AstType target, string member) { Target = new TypeReferenceExpression(target); Member = new Identifier(member, TextLocation.Empty); }
public QualifiedType(AstType target, Identifier name) { Target = target; SetChildByRole(Roles.Identifier, name); }
public TypeReferenceExpression(AstType type) { SetChildByRole(Roles.Type, type); }