示例#1
0
 private static void* __CopyValue(DependentNameType.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(16);
     global::CppSharp.Parser.AST.DependentNameType.__Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }
示例#2
0
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(string.Empty);
 }
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotSupportedException( );
 }
示例#4
0
文件: AST.cs 项目: RainsSoft/CppSharp
 private DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
示例#5
0
 public bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotImplementedException();
 }
示例#6
0
文件: AST.cs 项目: CSRedRat/CppSharp
 protected DependentNameType(DependentNameType.Internal* native, bool skipVTables = false)
     : base((CppSharp.Parser.AST.Type.Internal*) null)
 {
     __PointerAdjustment = 0;
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
示例#7
0
文件: AST.cs 项目: RainsSoft/CppSharp
 public static DependentNameType __CreateInstance(DependentNameType.Internal native)
 {
     return new DependentNameType(native);
 }
示例#8
0
文件: AST.cs 项目: kidleon/CppSharp
 internal DependentNameType(DependentNameType.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
示例#9
0
文件: AST.cs 项目: kidleon/CppSharp
 internal DependentNameType(DependentNameType.Internal native)
     : this(&native)
 {
 }
示例#10
0
文件: AST.cs 项目: vovkasm/CppSharp
 internal DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
 }
示例#11
0
 private DependentNameType(DependentNameType.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
示例#12
0
 public virtual TypePrinterResult VisitDependentNameType(
     DependentNameType dependent, TypeQualifiers quals)
 {
     throw new NotImplementedException();
 }
 public bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(false);
 }
示例#14
0
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Desugared.Type != null?dependent.Desugared.Visit(this) : string.Empty);
 }
示例#15
0
文件: AST.cs 项目: CSRedRat/CppSharp
 public static DependentNameType __CreateInstance(DependentNameType.Internal native, bool skipVTables = false)
 {
     return new DependentNameType(native, skipVTables);
 }
 public string VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     throw new System.NotImplementedException();
 }
示例#17
0
文件: AST.cs 项目: CSRedRat/CppSharp
 private DependentNameType(DependentNameType.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
示例#18
0
 public abstract TRet VisitDependentName(DependentNameType type);
示例#19
0
 public override TypePrinterResult VisitDependentNameType(
     DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Qualifier.Type != null?
            dependent.Qualifier.Visit(this) : string.Empty);
 }
示例#20
0
        public TRet Visit(Parser.AST.Type type)
        {
            if (type.__Instance == IntPtr.Zero)
            {
                return(default(TRet));
            }

            switch (type.Kind)
            {
            case TypeKind.Tag:
            {
                var _type = new TagType(type.__Instance);
                return(VisitTag(_type));
            }

            case TypeKind.Array:
            {
                var _type = new ArrayType(type.__Instance);
                return(VisitArray(_type));
            }

            case TypeKind.Function:
            {
                var _type = new FunctionType(type.__Instance);
                return(VisitFunction(_type));
            }

            case TypeKind.Pointer:
            {
                var _type = new PointerType(type.__Instance);
                return(VisitPointer(_type));
            }

            case TypeKind.MemberPointer:
            {
                var _type = new MemberPointerType(type.__Instance);
                return(VisitMemberPointer(_type));
            }

            case TypeKind.Typedef:
            {
                var _type = new TypedefType(type.__Instance);
                return(VisitTypedef(_type));
            }

            case TypeKind.Attributed:
            {
                var _type = new AttributedType(type.__Instance);
                return(VisitAttributed(_type));
            }

            case TypeKind.Decayed:
            {
                var _type = new DecayedType(type.__Instance);
                return(VisitDecayed(_type));
            }

            case TypeKind.TemplateSpecialization:
            {
                var _type = new TemplateSpecializationType(type.__Instance);
                return(VisitTemplateSpecialization(_type));
            }

            case TypeKind.TemplateParameter:
            {
                var _type = new TemplateParameterType(type.__Instance);
                return(VisitTemplateParameter(_type));
            }

            case TypeKind.TemplateParameterSubstitution:
            {
                var _type = new TemplateParameterSubstitutionType(type.__Instance);
                return(VisitTemplateParameterSubstitution(_type));
            }

            case TypeKind.InjectedClassName:
            {
                var _type = new InjectedClassNameType(type.__Instance);
                return(VisitInjectedClassName(_type));
            }

            case TypeKind.DependentName:
            {
                var _type = new DependentNameType(type.__Instance);
                return(VisitDependentName(_type));
            }

            case TypeKind.Builtin:
            {
                var _type = new BuiltinType(type.__Instance);
                return(VisitBuiltin(_type));
            }
            }

            throw new ArgumentOutOfRangeException();
        }
示例#21
0
文件: AST.cs 项目: RainsSoft/CppSharp
 private static DependentNameType.Internal* __CopyValue(DependentNameType.Internal native)
 {
     var ret = Marshal.AllocHGlobal(8);
     CppSharp.Parser.AST.DependentNameType.Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return (DependentNameType.Internal*) ret;
 }
示例#22
0
 public override bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     return(dependent.Qualifier.Visit(this));
 }
示例#23
0
文件: AST.cs 项目: RainsSoft/CppSharp
 protected DependentNameType(DependentNameType.Internal* native, bool isInternalImpl = false)
     : base((CppSharp.Parser.AST.Type.Internal*) native)
 {
 }
示例#24
0
 public override bool VisitDependentNameType(DependentNameType dependent, TypeQualifiers quals)
 {
     Ignore();
     return(false);
 }