Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ @inject [|IDis$$posable|] Disposable

@code
{
[|IDisposable|].Dispose()
void Dispose([|IDisposable|] thingToDispose)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ public Task IfElseStatements()
<div>
Hello World
</div>
else {[|
} else {[|
<div>
Goodbye World
</div>
}|]
}
|]</div>
|] }
</div>
""");

[Fact]
Expand Down Expand Up @@ -160,7 +160,7 @@ public Task CodeBlock()
<p>hello!</p>

@code {[|
var helloWorld = "";
private string helloWorld = "";
}|]

<p>hello!</p>
Expand All @@ -172,7 +172,7 @@ public Task CodeBlock_Mvc()
<p>hello!</p>

@functions {[|
var helloWorld = "";
private string helloWorld = "";
}|]

<p>hello!</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public async Task CSharp_Method()
}
@functions
{
void [|GetX|]()
int [|GetX|]()
{
return 4;
}
}
""";
Expand Down Expand Up @@ -248,7 +249,7 @@ public class [|AuthorViewViewComponent|] : ViewComponent
{
public string Invoke(int authorId)
{
return firstName;
return "Steve";
}
}
""").Text));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public async Task CSharp_Method()

@code
{
void [|GetX|]()
int [|GetX|]()
{
return 4;
}
}
""";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public Task InlayHints_ComponentAttributes()
<InputText Value="@(_value)" />
</div>

@code { private string _value = ""; }
""",
toolTipMap: [],
output: """
Expand All @@ -125,7 +126,8 @@ public Task InlayHints_ComponentAttributes()
<InputText Value="@_value" />
<InputText Value="@(_value)" />
</div>


@code { private string _value = ""; }
""");

[Theory]
Expand Down