[Breaking]: Visibility of fields/properties/classes does not match upstream tm4e implementation

オープン
#123 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp, java
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

[!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 ❌
主要言語
C#
スター
170
フォーク
35
平均マージ
2時間 52分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danipen/TextMateSharp のほかの issue

danipen/TextMateSharp の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。