From 7bb2de1bc40e535fae93940113db97b5ea44a6f2 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 4 Apr 2023 17:20:05 -0400 Subject: Simplification around ArtifactRepresentation and unique identity (#2771) * #include an absolute path didn't work - because paths were taken to always be relative. * WIP in handling artifacts/SourceFiles. * Add getUniqueIdentity to IPathArtifactRepresentation * Simplification because around using the representation to provide the uniqueIdentity. --- source/slang/slang-compiler.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/slang/slang-compiler.h') diff --git a/source/slang/slang-compiler.h b/source/slang/slang-compiler.h index b49ce4fc3..895834312 100755 --- a/source/slang/slang-compiler.h +++ b/source/slang/slang-compiler.h @@ -1495,6 +1495,9 @@ namespace Slang protected: void _addSourceFile(SourceFile* sourceFile); + /* Given an artifact, find a PathInfo. + If no PathInfo can be found will return an unknown PathInfo */ + PathInfo _findSourcePathInfo(IArtifact* artifact); List> m_sourceArtifacts; // The source file(s) that will be compiled to form this translation unit -- cgit v1.2.3