CodeQL library for Go
codeql/go-all 0.7.14 (changelog, source)
Search

Module PrintAst

Provides queries to pretty-print a Go AST as a graph.

Import path

import semmle.go.PrintAst

Imports

go

Provides classes for working with Go programs.

Predicates

edges

Holds if target is a child of source in the AST, and property key of the edge has the given value.

graphProperties

Holds if property key of the graph has the given value.

nodes

Holds if node belongs to the output tree, and its property key has the given value.

Classes

BaseAstNode

A graph node representing a real AST node.

ExprNode

A node representing an Expr.

FileNode

A node representing a File

PrintAstConfiguration

A hook to customize the files and functions printed by this module.

PrintAstNode

A node in the output tree.