Skip to content

Commit 5b67e28

Browse files
committed
Merge remote-tracking branch 'origin/main' into redsun82-rust-analyzer-update
2 parents 575ff15 + f70e0b5 commit 5b67e28

94 files changed

Lines changed: 11238 additions & 12888 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Microsoft.AspNetCore.Mvc;
2+
3+
[Route("api/attribute")]
4+
public class AttributePocoController
5+
{
6+
[HttpGet]
7+
public void Action(string input) => _ = GetType().Name + input;
8+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
</PropertyGroup>
5+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
public class ConventionOnlyController
2+
{
3+
public void Action(string input) => _ = GetType().Name + input;
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using Microsoft.AspNetCore.Builder;
2+
using Microsoft.Extensions.DependencyInjection;
3+
4+
var builder = WebApplication.CreateBuilder(args);
5+
builder.Services.AddControllers();
6+
7+
var app = builder.Build();
8+
app.MapControllers();
9+
app.Run();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| AdminAreaFallbackController.cs | AreaFallbackController |
2+
| AttributePocoController.cs | AttributePocoController |
3+
| FallbackOnlyController.cs | FallbackOnlyController |
4+
| GeneratedController.cs | GeneratedController |
5+
| IncludedController.cs | IncludedController |
6+
| StructuralController.cs | StructuralController |
7+
| WebPocoController.cs | WebPocoController |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import csharp
2+
import semmle.code.csharp.frameworks.microsoft.AspNetCore
3+
4+
from MicrosoftAspNetCoreMvcController controller
5+
where controller.fromSource()
6+
select controller.getFile().getBaseName(), controller.getName()
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace GeneratedControllers;
2+
3+
public class GeneratedController
4+
{
5+
public void Action(string input) => _ = GetType().Name + input;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
</PropertyGroup>
5+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace IncludedControllers;
2+
3+
public class IncludedController
4+
{
5+
public void Action(string input) => _ = GetType().Name + input;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
4+
</PropertyGroup>
5+
</Project>

0 commit comments

Comments
 (0)