C# -> VB: Expected VB code is invalid in the test Conflict_DeclarationsAfterConvertionForToWhileAsync
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
Tests/VB/StatementTests.cs の Conflict_DeclarationsAfterConvertionForToWhileAsync(896 行目付近)から始め、そのテストを実行して無効な VB 出力を再現します。C# の for-loop 変換を追跡し、issue の期待される出力と比較します。テストが個別のループスコープと期待される For-loop 形式を持つ有効な VB を生成すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Input code
class TestClass {
double height;
void TestMethod() {
for(double y = 0d; y < height; y += 10d)
Draw(y);
for(double y = 0d; y < height; y += 20d)
Draw(y);
}
void Draw(double height) {
}
}
Erroneous output
Friend Class TestClass
Private height As Double
Private Sub TestMethod()
Dim y As Double = 0R
While y < height
Me.Draw(y)
y += 10R
End While
Dim y As Double = 0R
While y < height
Me.Draw(y)
y += 20R
End While
End Sub
Private Sub Draw(ByVal height As Double)
End Sub
End Class
Expected output
Friend Class TestClass
Private height As Double
Private Sub TestMethod()
For y As Double = 0R To height - 1 Step 10R
Draw(y)
Next
For y As Double = 0R To height - 1 Step 20R
Draw(y)
Next
End Sub
Private Sub Draw(height As Double)
End Sub
End Class
Details
In Conflict_DeclarationsAfterConvertionForToWhileAsync test method starting on line 896.
https://github.com/icsharpcode/CodeConverter/blob/master/Tests/VB/StatementTests.cs
The error is the variable y is declared twice in the method.
Not sure why a C# for loop is being converted to a VB while loop.
- 主要言語
- C#
- スター
- 914
- フォーク
- 242
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
icsharpcode/CodeConverter のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
icsharpcode/CodeConverter#1271 · コメント 1 件 ·
-
C# -> VB: most pattern matching fails to convert対応中かも @gherards99 が 36 日前に担当しました。 オープンC# -> VB
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
icsharpcode/CodeConverter#1281 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
icsharpcode/CodeConverter#1275 ·
-
VB -> C#: Handleres of sub properties being untracked対応中かも @Igor-Tomasi が 72 日前に担当しました。 オープンVB -> C#
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
icsharpcode/CodeConverter#1273 ·
-
VB -> C#: "Group By Into" Linq queries supressing aggregations ("Into" part) in the converted codeオープンDifficult area VB -> C#
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
icsharpcode/CodeConverter#1272 ·
icsharpcode/CodeConverter の issue をすべて見る
似ている issue
-
再現済み 要トリアージ 誤判定
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yksr-melt/Meltype#421 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
Facepunch/sbox-public#12063 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
facioquo/stock-indicators-dotnet#2316 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eriknihlen/OpenAC#219 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ObsidianMC/Obsidian#548 ·
メンテナーはふだん 1 日以内に返信