@@ -7,7 +7,9 @@ private import semmle.code.csharp.frameworks.microsoft.AspNetCore
7
7
8
8
/** A call to the `View` method */
9
9
private class ViewCall extends MethodCall {
10
- ViewCall ( ) { this .getTarget ( ) .hasQualifiedName ( "Microsoft.AspNetCore.Mvc" , "Controller" , "View" ) }
10
+ ViewCall ( ) {
11
+ this .getTarget ( ) .hasFullyQualifiedName ( "Microsoft.AspNetCore.Mvc" , "Controller" , "View" )
12
+ }
11
13
12
14
/** Gets the `name` argument to this call, if any. */
13
15
string getNameArgument ( ) {
@@ -55,7 +57,7 @@ private class ViewCall extends MethodCall {
55
57
string getAreaName ( ) {
56
58
exists ( Attribute attr |
57
59
attr = this .getController ( ) .getAnAttribute ( ) and
58
- attr .getType ( ) .hasQualifiedName ( "Microsoft.AspNetCore.Mvc" , "AreaAttribute" ) and
60
+ attr .getType ( ) .hasFullyQualifiedName ( "Microsoft.AspNetCore.Mvc" , "AreaAttribute" ) and
59
61
result = attr .getArgument ( 0 ) .( StringLiteral ) .getValue ( )
60
62
)
61
63
}
@@ -70,13 +72,13 @@ class RazorViewClass extends Class {
70
72
71
73
RazorViewClass ( ) {
72
74
exists ( Class baseClass | baseClass = this .getBaseClass ( ) .getUnboundDeclaration ( ) |
73
- baseClass .hasQualifiedName ( "Microsoft.AspNetCore.Mvc.Razor" , "RazorPage<> " )
75
+ baseClass .hasFullyQualifiedName ( "Microsoft.AspNetCore.Mvc.Razor" , "RazorPage`1 " )
74
76
or
75
- baseClass .hasQualifiedName ( "Microsoft.AspNetCore.Mvc.RazorPages" , "Page" )
77
+ baseClass .hasFullyQualifiedName ( "Microsoft.AspNetCore.Mvc.RazorPages" , "Page" )
76
78
) and
77
79
attr .getFile ( ) = this .getFile ( ) and
78
80
attr .getType ( )
79
- .hasQualifiedName ( "Microsoft.AspNetCore.Razor.Hosting" , "RazorCompiledItemAttribute" )
81
+ .hasFullyQualifiedName ( "Microsoft.AspNetCore.Razor.Hosting" , "RazorCompiledItemAttribute" )
80
82
}
81
83
82
84
/**
@@ -176,7 +178,7 @@ private Expr getAViewLocationList(boolean isArea) {
176
178
result
177
179
.( PropertyRead )
178
180
.getProperty ( )
179
- .hasQualifiedName ( "Microsoft.AspNetCore.Mvc.Razor" , "RazorViewEngineOptions" , name )
181
+ .hasFullyQualifiedName ( "Microsoft.AspNetCore.Mvc.Razor" , "RazorViewEngineOptions" , name )
180
182
|
181
183
name = "ViewLocationFormats" and isArea = false
182
184
or
0 commit comments