Starting a new branch
還沒有人認領這個 Issue。
評估
研究方向
Start by reading the existing StartBranch(string token, IState<T> state) overload and the StringTransition API it should accept. Then add the overload that takes a transition, mirroring how existing branch-starting code threads state through. Add tests covering a transition with a pattern such as test|Test|TEST, and update the documentation that mentions StartBranch. Done means the new overload is usable as shown, with tests and docs updated.
由索引模型根據 Issue 內容生成。
描述
What we can do now
To start a branch, we use the method StartBranch(string token, IState<T> state)
The problem
If we want to start a branch from different tokens, we need to use this method again and again for similar tokens
For example
parser.StartBranch("test", state);
parser.StartBranch("Test", state);
parser.StartBranch("TEST", state);
The solution
Surcharche the method to also accept a transition. Since StringTransition can handle a regular expression, the above example can become
parser.StartBranch(new StringTransition(state).AddPattern("test|Test|TEST"))
Like always, don't forget to add tests and documentation
- 主要語言
- C#
- 星號
- 0
- 分支
- 0
- 平均合併
- 3 天 4 小時
- 30 天內合併 PR
- 5
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Natvs/Nt.SyntaxParser 的其他 Issue
-
New light syntax未關閉good first issue usability
難度 3/5 1-2 天 新手友好度 48/100
Natvs/Nt.SyntaxParser#45 ·
-
documentation
難度 3/5 1-2 天 新手友好度 55/100
Natvs/Nt.SyntaxParser#35 ·
-
bug invalid
難度 5/5 一週以上 新手友好度 20/100
Natvs/Nt.SyntaxParser#29 ·
-
enhancement
難度 5/5 一週以上 新手友好度 20/100
Natvs/Nt.SyntaxParser#28 ·
-
enhancement good first issue
難度 4/5 3-5 天 新手友好度 35/100
Natvs/Nt.SyntaxParser#15 ·
查看 Natvs/Nt.SyntaxParser 的全部 Issue
相似的 Issue
-
[中] 更新器下载缓存从不清理未關閉
難度 2/5 1-3 小時 新手友好度 72/100
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
NimblePros/eShopOnWeb#333 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
Natvs/Nt.Automaton#33 ·
-
enhancement
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 62/100