[Breaking]: Visibility of fields/properties/classes does not match upstream tm4e implementation
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Read the listed classes in TextMateSharp’s .internal.grammar namespace and compare their visibility and sealing with the linked upstream StateStack.java implementation. The issue names AttributedScopeStack, BalancedBracketSelectors, BasicScopeAttributes, BasicScopeAttributesProvider, Grammar, LineTokenizer, LineTokens, TokenTypeMatcher, and TokenizeLineResult; check for related discrepancies elsewhere as scope allows. Done means the identified classes match upstream visibility and sealing, with any additional discrepancies assessed.
Written by the indexing model from the issue text.
Description
[!warning]
Breaking API change
I'm working on fixing this now as we discussed here. I'm creating this issue to document the changes here.
[!Note]
I didn't examine other folders/files for similar discrepancies so there may be other changes needed.
The upstream java implementation declares StateStack (and some other classes in the .internal.grammar package as final (sealed in .NET). So if you wanted to have parity with the upstream impl, we should include a breaking change by declaring these classes as sealed. Also, notice it's in the .internal.grammar package, suggesting it's not meant for public extension anyways. Implementers could still implement IStateStack if desired.
Here is a list of upstream differences I found - I only looked in this folder/namespace. So, there may also be others:
| class name | sealed/unsealed (has parity with TextMateSharp) | class visibility (has parity with TextMateSharp) |
|---|---|---|
AttributedScopeStack |
sealed ❌ | internal ❌ |
BalancedBracketSelectors |
sealed ❌ | public ✅ |
BasicScopeAttributes |
sealed ❌ | internal ❌ |
BasicScopeAttributesProvider |
sealed ❌ | internal ❌ |
Grammar |
sealed ❌ | public ✅ |
LineTokenizer |
sealed ❌ | internal ❌ |
LineTokens |
sealed ❌ | internal ❌ |
TokenTypeMatcher |
sealed ❌ | internal ✅ |
TokenizeLineResult |
sealed ❌ | internal ❌ |
- Dominant language
- C#
- Stars
- 170
- Forks
- 35
- Avg merge
- 2h 52m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from danipen/TextMateSharp
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlPossibly taken @alexeyfala claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
danipen/TextMateSharp#145 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 44/100
danipen/TextMateSharp#120 · 38 comments · 1 reaction ·
-
good first issue
Difficulty 4/5 3-5 days Newbie friendliness 35/100
danipen/TextMateSharp#119 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
danipen/TextMateSharp#118 · 11 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
danipen/TextMateSharp#75 · 2 comments ·
All issues in danipen/TextMateSharp
Similar issues
-
bug documentation queries
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ClickHouse/clickhouse-cs#815 ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Klyroo/klyroo-dashboard#12 ·
Maintainers usually reply within 1 day
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onPossibly taken @yadavraj2001 claimed this today. Opendocumentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
juandresrodca/AdminForge#73 · 1 comment ·
Maintainers usually reply within 1 day
-
[辞書] VIVANTOpen要トリアージ 辞書
Difficulty 1/5 Under an hour Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 1/5 Under an hour Newbie friendliness 94/100
christian-raj/S-Aloha#504 ·