public CppSharp.AST.ASTContext Convert() { var _ctx = new AST.ASTContext(); for (uint i = 0; i < Context.TranslationUnitsCount; ++i) { var unit = Context.getTranslationUnits(i); var _unit = declConverter.Visit(unit) as AST.TranslationUnit; _ctx.TranslationUnits.Add(_unit); } return(_ctx); }
public override AST.Type VisitTag(TagType type) { var _type = new AST.TagType(); _type.Declaration = declConverter.Visit(type.Declaration); VisitType(type, _type); return(_type); }