We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bdcb8d commit 716da7cCopy full SHA for 716da7c
EmmyLua/CodeAnalysis/Compilation/Analyzer/DeclarationAnalyzer/DeclarationContext.cs
@@ -200,7 +200,7 @@ public void AttachDoc(LuaDocTagSyntax docTagSyntax)
200
201
public void SetElementRelatedClosure(LuaSyntaxElement element, LuaClosureExprSyntax closureExprSyntax)
202
{
203
- _elementRelatedClosure.Add(element.UniqueId, new(closureExprSyntax));
+ _elementRelatedClosure.TryAdd(element.UniqueId, new(closureExprSyntax));
204
}
205
206
public LuaClosureExprSyntax? GetElementRelatedClosure(LuaSyntaxElement element)
0 commit comments