antlr / antlr/symtab

BaseScope.nestedScopesNotSymbols is not exposed

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
53
Forks
16
PR merge metrics
No merged PRs in 30d

Description

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```, (in C# would be ```IList```), would it better to be ```IReadonlyList```? And if the list could grow big (guess only in theory), ```IReadonlyDictionary``` can be faster to query on?

Best regards,

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating BaseScope and the nestedScopesNotSymbols and getNestedScopes entry points. Compare the requested one-level access with the proposed read-only list or dictionary APIs; done means the chosen public API supports checking immediate namespace scopes and has coverage for its behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, java
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.