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

Module AST

Provides classes for working with AST nodes.

Import path

import semmle.go.AST

Imports

go

Provides classes for working with Go programs.

Classes

AstNode

An AST node.

DeclParent

An AST node whose children include declarations.

ExprParent

An AST node whose children include expressions.

FieldParent

An AST node whose children include field declarations.

GoModExprParent

An AST node whose children include go.mod expressions.

ScopeNode

An AST node which may induce a scope.

StmtParent

An AST node whose children include statements.

TypeParamDeclParent

An AST node whose children include type parameter declarations.