You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If a type's scope is the module definition then we don't need to create a new type reference. We can reuse the existing one, which is likely the TypeDefinition.
510
+
// Reusing the type avoid creating an unnecessary entry in the type reference table
511
+
if(type.Scope==module)
512
+
returntype;
513
+
514
+
// This case is more contrived, but it's the same as the above. If the type's scope matches the current modules assembly then we don't need to create a new type reference.
515
+
// Nor do we need to import the scope because the scope is the current modules assembly.
0 commit comments