From 494e09af2cebafa34db49dc1f60afd43aebed619 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 29 Oct 2020 11:45:56 -0400 Subject: Handling imported/exporting symbols from serialized modules (#1589) * #include an absolute path didn't work - because paths were taken to always be relative. * Fix handling of access modifiers inside type definition. * Fix access problem for AST node. Make dumping produce a single function with switch, to potentially make available without Dump specific access. * WIP on serialization design doc. * Remove project references to previously generated files. * More docs on serialization design. * Improve serialization documentation. Remove unused function from IRSerialReader. * Small fixes around naming. Remove long comment from slang-serialize.h - as covered in serialization.md * Remove long comment in slang-serialize.h as covered in serialization.md * More information about doing replacements on read for AST and problems surrounding. * Typo fix. * Spelling fixes. * Value serialize. * Value types with inheritence. * Use value reflection serial conversion for more AST types * Use automatic serialization on more of AST. * Get the types via decltype, simplifies what the extractor has to do. * Update the serialization.md for the value serialization. * Small doc improvements. * Update project. * Remove ImportExternalDecl type Added addImportSymbol and ImportSymbol type Fixed bug in container which meant it wouldn't read back AST module * Because of change of how imports and handled, store objects as SerialPointers. * First pass symbol lookup from mangled names. * Cache current module looked up from mangled name. * Fix SourceLoc bug. Improve comments. * Added diagnostic on mangled symbol not being found * Fix typo. Co-authored-by: Tim Foley --- source/slang/slang-ast-decl.h | 12 ------------ 1 file changed, 12 deletions(-) (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 4210318dc..2bf4c488b 100644 --- a/source/slang/slang-ast-decl.h +++ b/source/slang/slang-ast-decl.h @@ -481,16 +481,4 @@ class AttributeDecl : public ContainerDecl SyntaxClass syntaxClass; }; -// Import a Declaration that has been defined 'externally' and referenced in this module. -// Includes the managed name of the declaration. -// This declaration can be added when a module is serialized to any declaration that is -// external to the module being serialized, such that it replaces the reference to the -// declaration in another module. -class ImportExternalDecl : public DeclBase -{ - SLANG_AST_CLASS(ImportExternalDecl) - - String mangledName; -}; - } // namespace Slang -- cgit v1.2.3