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:
Joe
2020-09-14 14:36:50 +01:00
parent 53ab8dac06
commit 28338eb32e
6 changed files with 6 additions and 6 deletions

View File

@@ -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
*/

View File

@@ -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" }
}
/**

View File

@@ -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. */

View File

@@ -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
*/

View File

@@ -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

View File

@@ -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