mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Narrow the use of unbound declaration locations to nested types.
This commit is contained in:
@@ -30,7 +30,7 @@ class Type extends Member, TypeContainer, @type {
|
||||
/** Holds if this type is implicitly convertible to `that` type. */
|
||||
predicate isImplicitlyConvertibleTo(Type that) { implicitConversion(this, that) }
|
||||
|
||||
override Location getALocation() { type_location(this.getUnboundDeclaration(), result) }
|
||||
override Location getALocation() { type_location(this, result) }
|
||||
|
||||
override Type getChild(int n) { none() }
|
||||
|
||||
@@ -394,6 +394,8 @@ class NestedType extends ValueOrRefType {
|
||||
NestedType() { nested_types(this, _, _) }
|
||||
|
||||
override ValueOrRefType getDeclaringType() { nested_types(this, result, _) }
|
||||
|
||||
override Location getALocation() { type_location(this.getUnboundDeclaration(), result) }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user