-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
| BlazorTest/Components/MyOutput.razor:5:53:5:57 | access to property Value | | ||
| BlazorTest/Components/Pages/TestPage.razor:11:48:11:55 | access to property UrlParam | | ||
| BlazorTest/Components/Pages/TestPage.razor:20:60:20:69 | access to property QueryParam | | ||
| BlazorTest/Components/Pages/TestPage.razor:29:53:29:63 | access to property InputValue1 | | ||
| BlazorTest/Components/Pages/TestPage.razor:38:53:38:63 | access to property InputValue2 | | ||
| BlazorTest/Components/Pages/TestPage.razor:47:53:47:68 | access to property Value | | ||
| BlazorTest/Components/Pages/TestPage.razor:56:53:56:63 | access to property InputValue3 | | ||
| BlazorTest/Components/Pages/TestPage.razor:65:53:65:63 | access to property InputValue4 | |
31 changes: 31 additions & 0 deletions
31
csharp/ql/lib/semmle/code/csharp/frameworks/microsoft/Blazor.qll
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** Provides definitions related to the namespace `Microsoft.AspNetCore.Components`. */ | ||
|
||
import csharp | ||
private import AspNetCore | ||
|
||
/** The `Microsoft.AspNetCore.Components` namespace. */ | ||
class MicrosoftAspNetCoreComponents extends Namespace { | ||
MicrosoftAspNetCoreComponents() { | ||
this.getParentNamespace() instanceof MicrosoftAspNetCoreNamespace and | ||
this.hasName("Components") | ||
} | ||
} | ||
|
||
/** A struct in the `Microsoft.AspNetCore.Components` namespace. */ | ||
class MicrosoftAspNetCoreComponentsStruct extends Struct { | ||
MicrosoftAspNetCoreComponentsStruct() { | ||
this.getNamespace() instanceof MicrosoftAspNetCoreComponents | ||
} | ||
} | ||
|
||
/** The `Microsoft.AspNetCore.Components.MarkupString` struct. */ | ||
class MicrosoftAspNetCoreComponentsMarkupStringStruct extends MicrosoftAspNetCoreComponentsStruct { | ||
MicrosoftAspNetCoreComponentsMarkupStringStruct() { this.hasName("MarkupString") } | ||
|
||
/** Gets the explicit conversion operator from `string` to `StringStruct`. */ | ||
ExplicitConversionOperator getOpExplicit() { | ||
result.getDeclaringType() instanceof MicrosoftAspNetCoreComponentsMarkupStringStruct and | ||
result.getReturnType() instanceof MicrosoftAspNetCoreComponentsMarkupStringStruct and | ||
result.getParameter(0).getType() instanceof StringType | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters