Example #1
0
 public CastExpression CastTo(Type type)
 {
     return(new CastExpression {
         CastType = CastType.CType, Type = AstType.Create(type), Expression = this
     });
 }
Example #2
0
 public CastExpression CastTo(AstType type)
 {
     return(new CastExpression {
         CastType = CastType.CType, Type = type, Expression = this
     });
 }
Example #3
0
 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);
 }
Example #5
0
 public QualifiedType(AstType target, Identifier name)
 {
     Target = target;
     SetChildByRole(Roles.Identifier, name);
 }
 public TypeReferenceExpression(AstType type)
 {
     SetChildByRole(Roles.Type, type);
 }