Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/Indexing/ObjectIndexer.cs
/// <summary>
/// Store a key value pair in the debug string table of the Indexer. This is an internal QuickSearch debugging function.
/// </summary>
/// <param name="id">Entry id</param>
/// <param name="word">Word to index.</param>
Store a key value pair in the debug string table of the Indexer. This is an internal QuickSearch debugging function.
Store a key value pair in the debug string table of the Indexer . This is an internal QuickSearch debugging function .
[System.Diagnostics.Conditional("DEBUG_INDEXING")]
        protected void IndexDebugMatch(string id, string word)
        {
            #if DEBUG_INDEXING
            HashSet<string> words;
            if (m_DebugStringTable.TryGetValue(id, out words))
            {
                words.Add(word);
            }
            else
            {
                m_DebugStringTable[id] = new HashSet<string> { word };
            }
            #endif
        }
[ System . Diagnostics . Conditional ( " " ) ] protected void IndexDebugMatch ( string id , string word ) { if DEBUG_INDEXING HashSet < string > words ; if ( m_DebugStringTable . TryGetValue ( id , out words ) ) { words . Add ( word ) ; } else { m_DebugStringTable [ id ] = new HashSet < string > { word } ; } endif }
Store a key value pair in the debug string table of the Indexer.
Store a key value pair in the debug string table of the Indexer .
id
string
None
word
string
Word to index.
Word to index .