mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
C#/Java: Address review comments.
This commit is contained in:
@@ -41,15 +41,6 @@ private module Printing implements PrintingSig {
|
||||
|
||||
module ModelPrinting = PrintingImpl<Printing>;
|
||||
|
||||
/**
|
||||
* Gets the underlying type of the content `c`.
|
||||
*/
|
||||
private Type getUnderlyingContentType(DataFlow::Content c) {
|
||||
result = getUnderlyingContentTypeSpecific(c) or
|
||||
result = c.(DataFlow::FieldContent).getField().getType() or
|
||||
result = c.(DataFlow::SyntheticFieldContent).getField().getType()
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if `c` is a relevant content kind, where the underlying type is relevant.
|
||||
*/
|
||||
|
||||
@@ -186,7 +186,13 @@ predicate isRelevantType(J::Type t) {
|
||||
)
|
||||
}
|
||||
|
||||
J::Type getUnderlyingContentTypeSpecific(DataFlow::Content c) { none() }
|
||||
/**
|
||||
* Gets the underlying type of the content `c`.
|
||||
*/
|
||||
J::Type getUnderlyingContentType(DataFlow::Content c) {
|
||||
result = c.(DataFlow::FieldContent).getField().getType() or
|
||||
result = c.(DataFlow::SyntheticFieldContent).getField().getType()
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the MaD string representation of the qualifier.
|
||||
|
||||
Reference in New Issue
Block a user