public static ITypeWrapper CreateTypeWrapper(CppSharp.AST.Type rawType) { if (rawType is CppSharp.AST.FunctionType) { return(new FunctionTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.BuiltinType) { return(new BuildinTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.DecayedType) { return(new DecayedTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.TagType) { return(new TagedTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.TypedefType) { return(new TypedefTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.PointerType) { return(new PointerTypeWrapper(rawType)); } else if (rawType is CppSharp.AST.ArrayType) { return(new ArrayTypeWrapper(rawType)); } else { return(new UnknowTypeWrapper(rawType)); } }
public DecayedTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.DecayedType; }
public BuildinTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.BuiltinType; }
void VisitType(Parser.AST.Type origType, CppSharp.AST.Type type) { type.IsDependent = origType.IsDependent; }
public FunctionTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.FunctionType; }
public UnknowTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; }
public static string GetRawTypeName(CppSharp.AST.Type type) { return(TypeWrapperFactory.CreateTypeWrapper(type).GetRawTypeName()); }
public PointerTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.PointerType; }
public ArrayTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.ArrayType; }
public TypedefTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.TypedefType; }
public TagedTypeWrapper(CppSharp.AST.Type rawType) { this.rawType = rawType; type = rawType as CppSharp.AST.TagType; }
public static string GetSystemTypeName(CppSharp.AST.Type type, bool addComment = false) { return(TypeWrapperFactory.CreateTypeWrapper(type).GetSystemTypeName(addComment)); }
public static string GetMarshalTag(CppSharp.AST.Type type) { return(TypeWrapperFactory.CreateTypeWrapper(type).GetMarshalTag()); }