From b7f8f7abcc3cc1dfa820ebba47a772b78d6a4cfb Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 29 Jan 2019 11:41:54 -0800 Subject: Add support for user defined attributes. --- source/slang/name.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/slang/name.h') 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) { -- cgit v1.2.3