From d90ae365210cdecdad7f66a7b2e3993df2cbb7d4 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 21 May 2020 14:06:18 -0400 Subject: AST dump improvements (#1350) * Add support for parsing array types to C++ extractor. * C++ extractor looks for 'balanced tokens'. Use for extracting array suffixes. * First pass at field dumping. * Update project for field dumping. * WIP AST Dumper. * More AST dump compiling. * Fix bug in StringSlicePool where it doesn't use the copy of the UnownedStringSlice in the map. * Add support for SLANG_RELFECTED and SLANG_UNREFLECTED More AST dump support. * Support for hierarchical dumping/flat dumping. Use SourceWriter to dump. * Add -dump-ast command line option. * Add fixes to VS project to incude AST dump. * Fix compilation on gcc. * Add fix for type ambiguity issue on x86 VS. * Fixes from merge of reducing Token size. * Fix comment about using SourceWriter. * Improvement AST dumping around * Pointers (write as hex) * Scope * Turn off some unneeded fields in AST hierarchy * Only output the initial module in full. --- source/slang/slang-ast-decl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/slang/slang-ast-decl.h') diff --git a/source/slang/slang-ast-decl.h b/source/slang/slang-ast-decl.h index 069f1ac11..2385b6e23 100644 --- a/source/slang/slang-ast-decl.h +++ b/source/slang/slang-ast-decl.h @@ -34,6 +34,8 @@ class ContainerDecl: public Decl void invalidateMemberDictionary() { dictionaryLastCount = -1; } + SLANG_UNREFLECTED // We don't want to reflect the following fields + // Denotes how much of Members has been placed into the dictionary/transparentMembers. // If this value equals the Members.getCount(), the dictionary is completely full and valid. // If it's >= 0, then the Members after dictionaryLastCount are all that need to be added. -- cgit v1.2.3