Exemple #1
0
 public static IEnumerable <BlockContentComment> GetBlocks(this FullComment fullComment)
 {
     for (var x = 0; x < fullComment.BlocksCount; x++)
     {
         var block = fullComment.getBlocks((uint)x);
         yield return(block);
     }
 }
Exemple #2
0
        public bool VisitFull(FullComment comment)
        {
            foreach (var block in comment.Blocks)
            {
                block.Visit(this);
            }

            return(true);
        }
Exemple #3
0
        public virtual TRet Visit(Parser.AST.Comment comment)
        {
            switch (comment.Kind)
            {
            case CommentKind.FullComment:
            {
                var _comment = new FullComment(comment.__Instance);
                return(VisitFullComment(_comment));
            }
            }

            throw new ArgumentOutOfRangeException();
        }
Exemple #4
0
 protected FullComment(FullComment.Internal* native, bool skipVTables = false)
     : base((CppSharp.Parser.AST.Comment.Internal*) null)
 {
     __PointerAdjustment = 0;
     if (native == null)
         return;
     __Instance = new global::System.IntPtr(native);
 }
Exemple #5
0
 private FullComment(FullComment.Internal native, bool skipVTables = false)
     : this(__CopyValue(native), skipVTables)
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Exemple #6
0
 public static FullComment __CreateInstance(FullComment.Internal native, bool skipVTables = false)
 {
     return new FullComment(native, skipVTables);
 }
 private static void* __CopyValue(FullComment.__Internal native)
 {
     var ret = Marshal.AllocHGlobal(16);
     global::CppSharp.Parser.AST.FullComment.__Internal.cctor_1(ret, new global::System.IntPtr(&native));
     return ret.ToPointer();
 }
Exemple #8
0
 private FullComment(FullComment.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
 }
Exemple #9
0
 public override AST.Comment VisitFullComment(FullComment comment)
 {
     throw new NotImplementedException();
 }
Exemple #10
0
 private FullComment(FullComment.Internal native)
     : this(__CopyValue(native))
 {
     __ownsNativeInstance = true;
     NativeToManagedMap[__Instance] = this;
 }
Exemple #11
0
 private static global::System.IntPtr __CopyValue(FullComment.Internal native)
 {
     global::System.IntPtr ret = Marshal.AllocHGlobal(4);
     *(FullComment.Internal*) ret = native;
     return ret;
 }
Exemple #12
0
 internal FullComment(FullComment.Internal* native)
     : this(new global::System.IntPtr(native))
 {
 }
Exemple #13
0
 public abstract TRet VisitFullComment(FullComment comment);
Exemple #14
0
 public static FullComment __CreateInstance(FullComment.Internal native)
 {
     return new FullComment(native);
 }
Exemple #15
0
 internal FullComment(FullComment.Internal native)
     : this(__CopyValue(native))
 {
 }
Exemple #16
0
 private static FullComment.Internal* __CopyValue(FullComment.Internal native)
 {
     var ret = Marshal.AllocHGlobal(32);
     CppSharp.Parser.AST.FullComment.Internal.cctor_2(ret, new global::System.IntPtr(&native));
     return (FullComment.Internal*) ret;
 }
Exemple #17
0
 private static FullComment.Internal* __CopyValue(FullComment.Internal native)
 {
     var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4);
     *ret = native;
     return ret;
 }
Exemple #18
0
 protected FullComment(FullComment.Internal* native, bool isInternalImpl = false)
     : base((CppSharp.Parser.AST.Comment.Internal*) native)
 {
 }
Exemple #19
0
 internal FullComment(FullComment.Internal native)
     : this(&native)
 {
 }