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