summaryrefslogtreecommitdiff
path: root/source/slang/name.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/name.h')
-rw-r--r--source/slang/name.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/name.h b/source/slang/name.h
index e1a055e60..a144fbb84 100644
--- a/source/slang/name.h
+++ b/source/slang/name.h
@@ -66,7 +66,9 @@ struct NamePool
{
// Find or create the `Name` that represents the given `text`.
Name* getName(String const& text);
-
+ // Try find the `Name` that represents the given `text`.
+ // If the name does not exist, return nullptr
+ Name* tryGetName(String const& text);
// Set the parent name pool to use for lookup
void setRootNamePool(RootNamePool* rootNamePool)
{