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