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); } }
public bool VisitFull(FullComment comment) { foreach (var block in comment.Blocks) { block.Visit(this); } return(true); }
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(); }
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); }
private FullComment(FullComment.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
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(); }
private FullComment(FullComment.Internal native) : this(__CopyValue(native)) { __ownsNativeInstance = true; }
public override AST.Comment VisitFullComment(FullComment comment) { throw new NotImplementedException(); }
private FullComment(FullComment.Internal native) : this(__CopyValue(native)) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
private static global::System.IntPtr __CopyValue(FullComment.Internal native) { global::System.IntPtr ret = Marshal.AllocHGlobal(4); *(FullComment.Internal*) ret = native; return ret; }
internal FullComment(FullComment.Internal* native) : this(new global::System.IntPtr(native)) { }
public abstract TRet VisitFullComment(FullComment comment);
public static FullComment __CreateInstance(FullComment.Internal native) { return new FullComment(native); }
internal FullComment(FullComment.Internal native) : this(__CopyValue(native)) { }
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; }
private static FullComment.Internal* __CopyValue(FullComment.Internal native) { var ret = (FullComment.Internal*) Marshal.AllocHGlobal(4); *ret = native; return ret; }
protected FullComment(FullComment.Internal* native, bool isInternalImpl = false) : base((CppSharp.Parser.AST.Comment.Internal*) native) { }
internal FullComment(FullComment.Internal native) : this(&native) { }