mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Java: PrintAst: Various minor fixes of typos
Fix references to C# Fix getAPrimaryQlClass for JavadocTag Fix typo for Import Update test outputs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @name Print AST
|
||||
* @description Outputs a representation of a file's Abstract Syntax Tree. This
|
||||
* query is used by the VS Code extension.
|
||||
* @id csharp/print-ast
|
||||
* @id java/print-ast
|
||||
* @kind graph
|
||||
* @tags ide-contextual-queries/print-ast
|
||||
*/
|
||||
|
||||
@@ -51,7 +51,7 @@ class ImportOnDemandFromType extends Import {
|
||||
|
||||
override string toString() { result = "import " + this.getTypeHoldingImport().toString() + ".*" }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "ImportOnDemandFromTypw" }
|
||||
override string getAPrimaryQlClass() { result = "ImportOnDemandFromType" }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -92,7 +92,7 @@ class JavadocTag extends JavadocElement, JavadocParent, @javadocTag {
|
||||
/** Gets the text associated with this Javadoc tag. */
|
||||
override string getText() { result = this.getChild(0).toString() }
|
||||
|
||||
override string getAPrimaryQlClass() { result = "Javadoc" }
|
||||
override string getAPrimaryQlClass() { result = "JavadocTag" }
|
||||
}
|
||||
|
||||
/** A Javadoc `@param` tag. */
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @name Print AST
|
||||
* @description Outputs a representation of the Abstract Syntax Tree.
|
||||
* @id csharp/print-ast
|
||||
* @id java/print-ast
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
|
||||
@@ -24,6 +24,6 @@ javadoc/Test.java:
|
||||
# 18| 6: [Method] h
|
||||
#-----| 0: (Javadoc)
|
||||
# 17| 1: [Javadoc] /** @deprecated */
|
||||
# 17| 0: [Javadoc] @deprecated
|
||||
# 17| 0: [JavadocTag] @deprecated
|
||||
# 18| 3: [TypeAccess] void
|
||||
# 18| 5: [BlockStmt] stmt
|
||||
|
||||
@@ -6,7 +6,7 @@ A.java:
|
||||
# 1| 0: [JavadocText] Another javadoc
|
||||
# 3| 2: [Javadoc] /** A class ... */
|
||||
# 4| 0: [JavadocText] A class
|
||||
# 6| 1: [Javadoc] @author
|
||||
# 6| 1: [JavadocTag] @author
|
||||
# 6| 0: [JavadocText] someone
|
||||
# 9| 3: [Interface] Ann1
|
||||
# 10| 1: [Method] value
|
||||
|
||||
Reference in New Issue
Block a user