File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
import csharp
15
15
private import semmle.code.csharp.frameworks.System
16
+ private import semmle.code.dotnet.DotNet as DotNet // added to handle VoidType as a ValueOrRefType
16
17
17
18
/** An element that should be in the generated code. */
18
19
abstract class GeneratedElement extends Element { }
@@ -332,7 +333,7 @@ private class GeneratedNamespace extends Namespace, GeneratedElement {
332
333
}
333
334
334
335
private predicate isInAssembly ( Assembly assembly ) {
335
- any ( GeneratedType gt | gt .( ValueOrRefType ) .getDeclaringNamespace ( ) = this )
336
+ any ( GeneratedType gt | gt .( DotNet :: ValueOrRefType ) .getDeclaringNamespace ( ) = this )
336
337
.isInAssembly ( assembly )
337
338
or
338
339
this .getChildNamespace ( _) .isInAssembly ( assembly )
@@ -353,7 +354,7 @@ private class GeneratedNamespace extends Namespace, GeneratedElement {
353
354
this .isInAssembly ( assembly ) and
354
355
result =
355
356
concat ( GeneratedType gt |
356
- gt .( ValueOrRefType ) .getDeclaringNamespace ( ) = this and gt .isInAssembly ( assembly )
357
+ gt .( DotNet :: ValueOrRefType ) .getDeclaringNamespace ( ) = this and gt .isInAssembly ( assembly )
357
358
|
358
359
gt .getStub ( assembly ) order by gt .getName ( )
359
360
)
You can’t perform that action at this time.
0 commit comments