In C#, to add a new namespace scope, I need to check currentScope if that already existed, but this nestedScopesNotSymbols is not exposed to me, we do have getNestedScopes but I don't want that, I just need to check one level.
Related, instead of List<Scope>, (in C# would be IList<IScope>), would it better to be IReadonlyList<IScope>? And if the list could grow big (guess only in theory), IReadonlyDictionary can be faster to query on?
Best regards,
In C#, to add a new namespace scope, I need to check currentScope if that already existed, but this nestedScopesNotSymbols is not exposed to me, we do have getNestedScopes but I don't want that, I just need to check one level.
Related, instead of
List<Scope>, (in C# would beIList<IScope>), would it better to beIReadonlyList<IScope>? And if the list could grow big (guess only in theory),IReadonlyDictionarycan be faster to query on?Best regards,