Skip to content

Commit c7dc4ae

Browse files
committed
Fix global define
1 parent 05fc9e6 commit c7dc4ae

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

EmmyLua/CodeAnalysis/Compilation/Symbol/LuaSymbol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public override int GetHashCode()
150150

151151
public bool IsReferenceTo(LuaSymbol other)
152152
{
153-
return Info.Ptr.ElementId == other.Info.Ptr.ElementId;
153+
return Info.Ptr.UniqueId == other.Info.Ptr.UniqueId;
154154
}
155155

156156
public override string ToString()

EmmyLua/CodeAnalysis/Type/Manager/LuaTypeManager.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,6 @@ public void SetGlobalTypeSymbol(string name, LuaNamedType namedType)
187187
{
188188
AddMemberImplementations(namedType, members.Values);
189189
}
190-
191-
var typeInfo = FindTypeInfo(namedType);
192-
if (typeInfo is not null)
193-
{
194-
typeInfo.Attribute |= LuaTypeAttribute.Global;
195-
}
196190
}
197191
}
198192

0 commit comments

Comments
 (0)