Skip to content

Commit 2874050

Browse files
committed
CodeQL for Go: Edit AST reference
1 parent cee2485 commit 2874050

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/language/learn-ql/go/ast-class-reference.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
Abstract syntax tree classes for Go
2-
===================================
1+
Abstract syntax tree classes for working with Go programs
2+
=========================================================
3+
4+
CodeQL has a large selection of classes for representing the abstract syntax tree of Go programs.
5+
6+
.. include:: ../../reusables/abstract-syntax-tree.rst
37

48
Statement classes
59
-----------------
@@ -471,3 +475,9 @@ The following classes organize expressions by the kind of entity they refer to.
471475
+------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
472476
| `ValueExpr <https://help.semmle.com/qldoc/go/semmle/go/Expr.qll/type.Expr$BadExpr.html>`__ | an expression that can be evaluated to a value (as opposed to expressions that refer to a package, a type, or a statement label). This generalizes `ReferenceExpr <https://help.semmle.com/qldoc/go/semmle/go/Expr.qll/type.Expr$ReferenceExpr.html>`__ |
473477
+------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
478+
479+
Further reading
480+
---------------
481+
482+
.. include:: ../../reusables/go-further-reading.rst
483+
.. include:: ../../reusables/codeql-ref-tools-further-reading.rst

docs/language/learn-ql/go/ql-for-go.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Experiment and learn how to write effective and efficient queries for CodeQL dat
1313

1414
- :doc:`CodeQL library for Go <introduce-libraries-go>`: When you're analyzing a Go program, you can make use of the large collection of classes in the CodeQL library for Go.
1515

16-
- :doc:`Abstract syntax tree classes for Go <ast-class-reference>`: CodeQL has a large selection of classes for representing the abstract syntax tree of Go programs.
16+
- :doc:`Abstract syntax tree classes for working with Go programs <ast-class-reference>`: CodeQL has a large selection of classes for representing the abstract syntax tree of Go programs.

0 commit comments

Comments
 (0)