All Classes Interface Summary Class Summary
| Class |
Description |
| AddOp |
A Go additive operator: +, -, |, or ^
|
| AddOp.Add |
|
| AddOp.BitwiseOr |
|
| AddOp.BitwiseXor |
|
| AddOp.PartialVisitor<R> |
|
| AddOp.Subtract |
|
| AddOp.Visitor<R> |
|
| AliasDecl |
A Go type alias declaration: identifier = Type
|
| AliasDecl.Builder |
|
| AnnotatedDeclaration |
A top-level Go declaration together with its preceding comment
|
| AnnotatedDeclaration.Builder |
|
| Arguments |
The argument list of a Go call expression, with an optional leading type argument and an optional trailing ellipsis for spread calls
|
| Arguments.Builder |
|
| ArrayType |
A Go array type: a fixed length and an element type
|
| ArrayType.Builder |
|
| Assignment |
A Go assignment statement: a left-hand expression list, an assignment operator, and a right-hand expression list
|
| Assignment.Builder |
|
| AssignOp |
A Go assignment operator: plain =, or an additive/multiplicative compound assignment
|
| AssignOp.Add |
|
| AssignOp.Mul |
|
| AssignOp.PartialVisitor<R> |
|
| AssignOp.Simple |
|
| AssignOp.Visitor<R> |
|
| BasicLit |
A Go basic literal: an integer, floating-point, imaginary, rune, or string literal
|
| BasicLit.Float_ |
|
| BasicLit.Imaginary |
|
| BasicLit.Int |
|
| BasicLit.PartialVisitor<R> |
|
| BasicLit.Rune |
|
| BasicLit.String_ |
|
| BasicLit.Visitor<R> |
|
| BinaryExpr |
A Go binary expression: a left operand, a binary operator, and a right operand
|
| BinaryExpr.Builder |
|
| BinaryOp |
A Go binary operator, covering logical, relational, additive, and multiplicative operators
|
| BinaryOp.Add |
|
| BinaryOp.And |
|
| BinaryOp.BitClear |
|
| BinaryOp.BitwiseAnd |
|
| BinaryOp.BitwiseOr |
|
| BinaryOp.BitwiseXor |
|
| BinaryOp.Divide |
|
| BinaryOp.Equal |
|
| BinaryOp.Greater |
|
| BinaryOp.GreaterEqual |
|
| BinaryOp.LeftShift |
|
| BinaryOp.Less |
|
| BinaryOp.LessEqual |
|
| BinaryOp.Multiply |
|
| BinaryOp.NotEqual |
|
| BinaryOp.Or |
|
| BinaryOp.PartialVisitor<R> |
|
| BinaryOp.Remainder |
|
| BinaryOp.RightShift |
|
| BinaryOp.Subtract |
|
| BinaryOp.Visitor<R> |
|
| Block |
A Go block: a brace-delimited list of statements
|
| Block.Builder |
A fluent builder for Block.
|
| BreakStmt |
A Go break statement, with an optional target label
|
| BreakStmt.Builder |
|
| CallExpr |
A Go call expression: a function together with its arguments
|
| CallExpr.Builder |
|
| ChannelDirection |
The direction of a Go channel type: bidirectional, send-only, or receive-only
|
| ChannelDirection.Bidirectional |
|
| ChannelDirection.PartialVisitor<R> |
|
| ChannelDirection.Receive |
|
| ChannelDirection.Send |
|
| ChannelDirection.Visitor<R> |
|
| ChannelType |
A Go channel type: a direction and an element type
|
| ChannelType.Builder |
|
| CommCase |
A Go communication case in a select statement: a send, a receive, or the default case
|
| CommCase.Default |
|
| CommCase.PartialVisitor<R> |
|
| CommCase.Receive |
|
| CommCase.Send |
|
| CommCase.Visitor<R> |
|
| CommClause |
A Go communication clause: a comm case together with its statement list
|
| CommClause.Builder |
|
| CompositeLit |
A Go composite literal: a literal type together with its literal value
|
| CompositeLit.Builder |
|
| ConstDecl |
A Go constant declaration: one or more constant specs
|
| ConstDecl.Builder |
|
| ConstSpec |
A Go constant spec: a list of names, an optional type, and a list of value expressions
|
| ConstSpec.Builder |
|
| ContinueStmt |
A Go continue statement, with an optional target label
|
| ContinueStmt.Builder |
|
| Conversion |
A Go type conversion expression: a target type applied to an expression
|
| Conversion.Builder |
|
| Declaration |
A Go declaration: a constant, type, or variable declaration
|
| Declaration.Const |
|
| Declaration.PartialVisitor<R> |
|
| Declaration.Type |
|
| Declaration.Var |
|
| Declaration.Visitor<R> |
|
| DeferStmt |
A Go defer statement, wrapping the deferred expression
|
| DeferStmt.Builder |
|
| Element |
A Go composite-literal element: an expression or a nested literal value
|
| Element.Expression |
|
| Element.Literal |
|
| Element.PartialVisitor<R> |
|
| Element.Visitor<R> |
|
| ElementList |
A non-empty list of keyed elements in a Go composite literal
|
| ElementList.Builder |
|
| ElseClause |
The else clause of a Go if statement: another if statement or a block
|
| ElseClause.Block |
|
| ElseClause.If |
|
| ElseClause.PartialVisitor<R> |
|
| ElseClause.Visitor<R> |
|
| EmbeddedField |
A Go embedded (anonymous) struct field: a type name, an optional pointer marker, and an optional tag
|
| EmbeddedField.Builder |
|
| EmptyStmt |
A Go empty statement
|
| EmptyStmt.Builder |
|
| ExprCaseClause |
A case clause of a Go expression switch: an optional expression list (absent for default) and a statement list
|
| ExprCaseClause.Builder |
|
| Expression |
A Go expression: a unary expression, or a binary expression combining two expressions
|
| Expression.Binary |
|
| Expression.PartialVisitor<R> |
|
| Expression.Unary |
|
| Expression.Visitor<R> |
|
| ExpressionStmt |
A Go expression statement, wrapping a single expression
|
| ExpressionStmt.Builder |
|
| ExprSwitchStmt |
A Go expression switch statement: an optional init statement, an optional tag expression, and its case clauses
|
| ExprSwitchStmt.Builder |
|
| FallthroughStmt |
A Go fallthrough statement
|
| FallthroughStmt.Builder |
|
| FieldDecl |
A Go struct field declaration: a named field or an embedded field
|
| FieldDecl.Embedded |
|
| FieldDecl.Named |
|
| FieldDecl.PartialVisitor<R> |
|
| FieldDecl.Visitor<R> |
|
| FloatLit |
A Go floating-point literal, in decimal or hexadecimal form
|
| FloatLit.Builder |
|
| ForClause |
A Go C-style for-loop clause: an optional init statement, an optional condition, and an optional post statement
|
| ForClause.Builder |
|
| ForClauseOrRange |
The header of a Go for statement: a bare condition, a for clause, or a range clause
|
| ForClauseOrRange.Clause |
|
| ForClauseOrRange.Condition |
|
| ForClauseOrRange.PartialVisitor<R> |
|
| ForClauseOrRange.Range |
|
| ForClauseOrRange.Visitor<R> |
|
| ForStmt |
A Go for statement: an optional loop header and a body block
|
| ForStmt.Builder |
|
| FullSlice |
A Go three-index slice expression, with low, high, and max bounds
|
| FullSlice.Builder |
|
| FunctionBody |
The body of a Go function: a block
|
| FunctionBody.Builder |
|
| FunctionDecl |
A Go top-level function declaration: a name, optional type parameters, a signature, and an optional body
|
| FunctionDecl.Builder |
|
| FunctionLit |
A Go function literal: a signature together with its body
|
| FunctionLit.Builder |
|
| FunctionType |
A Go function type: a signature
|
| FunctionType.Builder |
|
| GoStmt |
A Go go statement, launching the given expression as a goroutine
|
| GoStmt.Builder |
|
| GotoStmt |
A Go goto statement, naming its target label
|
| GotoStmt.Builder |
|
| Identifier |
A Go identifier: a letter followed by letters and unicode digits
|
| Identifier.Builder |
|
| IfStmt |
A Go if statement: an optional init statement, a condition, a then block, and an optional else clause
|
| IfStmt.Builder |
|
| ImaginaryLit |
A Go imaginary literal: a decimal or floating-point literal suffixed with 'i'
|
| ImaginaryLit.Builder |
|
| ImportAlias |
The optional alias of a Go import spec: a dot for a dot import, or an identifier for a named alias
|
| ImportAlias.Dot |
|
| ImportAlias.Name |
|
| ImportAlias.PartialVisitor<R> |
|
| ImportAlias.Visitor<R> |
|
| ImportDecl |
A Go import declaration: one or more import specs
|
| ImportDecl.Builder |
|
| ImportPath |
The path string of a Go import spec
|
| ImportPath.Builder |
|
| ImportSpec |
A Go import spec: an optional dot or package-name alias together with an import path
|
| ImportSpec.Builder |
|
| IncDecStmt |
A Go increment or decrement statement: an expression followed by ++ or --
|
| IncDecStmt.Builder |
|
| Index |
A Go index expression's bracketed index
|
| Index.Builder |
A fluent builder for Index.
|
| IndexExpr |
A Go index expression: a primary expression subscripted by an index
|
| IndexExpr.Builder |
|
| InterfaceElem |
A Go interface element: a method element or a type element
|
| InterfaceElem.Method |
|
| InterfaceElem.PartialVisitor<R> |
|
| InterfaceElem.Type |
|
| InterfaceElem.Visitor<R> |
|
| InterfaceType |
A Go interface type: a brace-delimited list of interface elements
|
| InterfaceType.Builder |
|
| InterpretedStringLit |
A Go interpreted (double-quoted) string literal
|
| InterpretedStringLit.Builder |
|
| IntLit |
A Go integer literal, in decimal, binary, octal, or hexadecimal form
|
| IntLit.Builder |
|
| Key |
The key of a Go keyed element: a field name, an expression, or a literal value
|
| Key.Expression |
|
| Key.Field |
|
| Key.Literal |
|
| Key.PartialVisitor<R> |
|
| Key.Visitor<R> |
|
| KeyedElement |
A Go composite-literal element with an optional key
|
| KeyedElement.Builder |
|
| LabeledStmt |
A Go labeled statement: a label together with the statement it labels
|
| LabeledStmt.Builder |
|
| Language |
Language constraints and reserved words for Go 1.22+
|
| Literal |
A Go literal: a basic literal, a composite literal, or a function literal
|
| Literal.Basic |
|
| Literal.Composite |
|
| Literal.Function |
|
| Literal.PartialVisitor<R> |
|
| Literal.Visitor<R> |
|
| LiteralType |
The type of a Go composite literal: a struct, array, elided-length array, slice, map, or named type
|
| LiteralType.Array |
|
| LiteralType.InferredArray |
|
| LiteralType.Map |
|
| LiteralType.Name |
|
| LiteralType.PartialVisitor<R> |
|
| LiteralType.Slice |
|
| LiteralType.Struct |
|
| LiteralType.Visitor<R> |
|
| LiteralValue |
A Go composite literal's brace-delimited value: an optional element list
|
| LiteralValue.Builder |
|
| MapType |
A Go map type: a key type and an element type
|
| MapType.Builder |
|
| MethodDecl |
A Go method declaration: a receiver, a method name, a signature, and an optional body
|
| MethodDecl.Builder |
|
| MethodElem |
A Go interface method element: a method name together with its signature
|
| MethodElem.Builder |
|
| MethodExpr |
A Go method expression: a receiver type together with a method name
|
| MethodExpr.Builder |
|
| Module |
A Go source file: a package clause, imports, and top-level declarations
|
| Module.Builder |
|
| MulOp |
A Go multiplicative operator: *, /, %, <<, >>, &, or &^
|
| MulOp.BitClear |
|
| MulOp.BitwiseAnd |
|
| MulOp.Divide |
|
| MulOp.LeftShift |
|
| MulOp.Multiply |
|
| MulOp.PartialVisitor<R> |
|
| MulOp.Remainder |
|
| MulOp.RightShift |
|
| MulOp.Visitor<R> |
|
| NamedField |
A Go named struct field: a list of names, a type, and an optional tag
|
| NamedField.Builder |
|
| Operand |
A Go operand: a literal, an operand name with optional type arguments, or a parenthesized expression
|
| Operand.Literal |
|
| Operand.Named |
|
| Operand.Paren |
|
| Operand.PartialVisitor<R> |
|
| Operand.Visitor<R> |
|
| OperandName |
A Go operand name: a plain identifier or a package-qualified identifier
|
| OperandName.Builder |
|
| PackageClause |
A Go package clause, naming the package
|
| PackageClause.Builder |
|
| ParameterDecl |
A Go parameter declaration: an optional identifier list, an optional variadic marker, and a type
|
| ParameterDecl.Builder |
|
| Parameters |
A Go parameter list, parenthesized and comma-separated
|
| Parameters.Builder |
|
| PointerType |
A Go pointer type: a pointer to a base type
|
| PointerType.Builder |
|
| PrimaryExpr |
A Go primary expression: an operand, conversion, or method expression, possibly followed by a selector, index, slice, type assertion, or call
|
| PrimaryExpr.Call |
|
| PrimaryExpr.Conversion |
|
| PrimaryExpr.Index |
|
| PrimaryExpr.MethodExpr |
|
| PrimaryExpr.Operand |
|
| PrimaryExpr.PartialVisitor<R> |
|
| PrimaryExpr.Selector |
|
| PrimaryExpr.Slice |
|
| PrimaryExpr.TypeAssertion |
|
| PrimaryExpr.Visitor<R> |
|
| QualifiedIdent |
A Go qualified identifier: a package name together with an identifier
|
| QualifiedIdent.Builder |
|
| RangeClause |
A Go range clause: an optional assignment or short variable declaration over a ranged expression
|
| RangeClause.Builder |
|
| RangeVars |
The loop variables of a Go range clause: an assignment or a short variable declaration
|
| RangeVars.Assign |
|
| RangeVars.Declare |
|
| RangeVars.PartialVisitor<R> |
|
| RangeVars.Visitor<R> |
|
| RawStringLit |
A Go raw (back-quoted) string literal
|
| RawStringLit.Builder |
|
| ReceiveCase |
A Go receive case in a select statement, with an optional assignment or declaration
|
| ReceiveCase.Builder |
|
| Receiver |
The receiver of a Go method declaration: a single non-variadic parameter
|
| Receiver.Builder |
|
| RelOp |
A Go relational operator: ==, !=, <, <=, >, or >=
|
| RelOp.Equal |
|
| RelOp.Greater |
|
| RelOp.GreaterEqual |
|
| RelOp.Less |
|
| RelOp.LessEqual |
|
| RelOp.NotEqual |
|
| RelOp.PartialVisitor<R> |
|
| RelOp.Visitor<R> |
|
| Result |
The result of a Go function signature: a parameter list or a bare type
|
| Result.Parameters |
|
| Result.PartialVisitor<R> |
|
| Result.Type |
|
| Result.Visitor<R> |
|
| ReturnStmt |
A Go return statement, with an optional expression list
|
| ReturnStmt.Builder |
|
| RuneLit |
A Go rune literal
|
| RuneLit.Builder |
|
| Selector |
A Go selector: a dot followed by an identifier
|
| Selector.Builder |
|
| SelectorExpr |
A Go selector expression: a primary expression together with a field or method selector
|
| SelectorExpr.Builder |
|
| SelectStmt |
A Go select statement: a brace-delimited list of communication clauses
|
| SelectStmt.Builder |
|
| SendStmt |
A Go send statement: a channel expression together with the value sent on it
|
| SendStmt.Builder |
|
| ShortVarDecl |
A Go short variable declaration: an identifier list assigned via :=
|
| ShortVarDecl.Builder |
|
| Signature |
A Go function signature: a parameter list and an optional result
|
| Signature.Builder |
|
| SimpleSlice |
A Go two-index slice expression, with optional low and high bounds
|
| SimpleSlice.Builder |
|
| SimpleStmt |
A Go simple statement: an empty, expression, send, increment/decrement, assignment, or short variable declaration statement
|
| SimpleStmt.Assignment |
|
| SimpleStmt.Empty |
|
| SimpleStmt.Expression |
|
| SimpleStmt.IncDec |
|
| SimpleStmt.PartialVisitor<R> |
|
| SimpleStmt.Send |
|
| SimpleStmt.ShortVarDecl |
|
| SimpleStmt.Visitor<R> |
|
| Slice |
A Go slice expression's bracketed bounds, either two-index or three-index
|
| Slice.Full |
|
| Slice.PartialVisitor<R> |
|
| Slice.Simple |
|
| Slice.Visitor<R> |
|
| SliceExpr |
A Go slice expression: a primary expression together with a simple or full slice
|
| SliceExpr.Builder |
|
| SliceType |
A Go slice type: an element type
|
| SliceType.Builder |
|
| SourceFile |
A Go source file: a package clause, imports, and top-level declarations
|
| SourceFile.Builder |
|
| Statement |
A Go statement, covering every statement form in the grammar
|
| Statement.Block |
|
| Statement.Break |
|
| Statement.Continue |
|
| Statement.Declaration |
|
| Statement.Defer |
|
| Statement.Fallthrough |
|
| Statement.For |
|
| Statement.Go |
|
| Statement.Goto |
|
| Statement.If |
|
| Statement.Labeled |
|
| Statement.PartialVisitor<R> |
|
| Statement.Return |
|
| Statement.Select |
|
| Statement.Simple |
|
| Statement.Switch |
|
| Statement.Visitor<R> |
|
| StringLit |
A Go string literal: a raw or interpreted string literal
|
| StringLit.Interpreted |
|
| StringLit.PartialVisitor<R> |
|
| StringLit.Raw |
|
| StringLit.Visitor<R> |
|
| StructType |
A Go struct type: a brace-delimited list of field declarations
|
| StructType.Builder |
|
| SwitchStmt |
A Go switch statement: an expression switch or a type switch
|
| SwitchStmt.Expression |
|
| SwitchStmt.PartialVisitor<R> |
|
| SwitchStmt.Type |
|
| SwitchStmt.Visitor<R> |
|
| Syntax |
DSL functions for hydra.go.syntax
|
| Tag |
A Go struct field tag: a string literal
|
| Tag.Builder |
A fluent builder for Tag.
|
| TopLevelDecl |
A Go top-level declaration: a plain declaration, a function declaration, or a method declaration
|
| TopLevelDecl.Declaration |
|
| TopLevelDecl.Function |
|
| TopLevelDecl.Method |
|
| TopLevelDecl.PartialVisitor<R> |
|
| TopLevelDecl.Visitor<R> |
|
| Type |
A Go type: a type name with optional type arguments, a type literal, or a parenthesized type
|
| Type.Literal |
|
| Type.Named |
|
| Type.Paren |
|
| Type.PartialVisitor<R> |
|
| Type.Visitor<R> |
|
| TypeAssertion |
A Go type assertion's parenthesized target type
|
| TypeAssertion.Builder |
|
| TypeAssertionExpr |
A Go type assertion expression: a primary expression together with its asserted type
|
| TypeAssertionExpr.Builder |
|
| TypeCaseClause |
A case clause of a Go type switch: an optional type list (absent for default) and a statement list
|
| TypeCaseClause.Builder |
|
| TypeConstraint |
A Go type parameter constraint: a type element
|
| TypeConstraint.Builder |
|
| TypeDecl |
A Go type declaration: one or more type specs
|
| TypeDecl.Builder |
|
| TypeDef |
A Go type definition: an identifier, optional type parameters, and an underlying type
|
| TypeDef.Builder |
|
| TypeElem |
A Go type element: one or more type terms joined by union operators
|
| TypeElem.Builder |
|
| TypeLit |
A Go type literal: an array, struct, pointer, function, interface, slice, map, or channel type
|
| TypeLit.Array |
|
| TypeLit.Channel |
|
| TypeLit.Function |
|
| TypeLit.Interface |
|
| TypeLit.Map |
|
| TypeLit.PartialVisitor<R> |
|
| TypeLit.Pointer |
|
| TypeLit.Slice |
|
| TypeLit.Struct |
|
| TypeLit.Visitor<R> |
|
| TypeName |
A Go type name: a plain identifier or a package-qualified identifier
|
| TypeName.Builder |
|
| TypeParamDecl |
A Go type parameter declaration: an identifier list together with a type constraint
|
| TypeParamDecl.Builder |
|
| TypeParameters |
A Go type parameter list, bracketed and comma-separated
|
| TypeParameters.Builder |
|
| TypeSpec |
A Go type spec: an alias declaration or a type definition
|
| TypeSpec.Alias |
|
| TypeSpec.Definition |
|
| TypeSpec.PartialVisitor<R> |
|
| TypeSpec.Visitor<R> |
|
| TypeSwitchGuard |
The guard of a Go type switch: an optional bound identifier together with the asserted primary expression
|
| TypeSwitchGuard.Builder |
|
| TypeSwitchStmt |
A Go type switch statement: an optional init statement, a type switch guard, and its case clauses
|
| TypeSwitchStmt.Builder |
|
| TypeTerm |
A Go type element term: a type, or its underlying-type form
|
| TypeTerm.Builder |
|
| UnaryExpr |
A Go unary expression: a primary expression or a unary operator applied to a unary expression
|
| UnaryExpr.Op |
|
| UnaryExpr.PartialVisitor<R> |
|
| UnaryExpr.Primary |
|
| UnaryExpr.Visitor<R> |
|
| UnaryOp |
A Go unary operator: +, -, !, ^, *, &, or <-
|
| UnaryOp.AddressOf |
|
| UnaryOp.Deref |
|
| UnaryOp.Minus |
|
| UnaryOp.Not |
|
| UnaryOp.PartialVisitor<R> |
|
| UnaryOp.Plus |
|
| UnaryOp.Receive |
|
| UnaryOp.Visitor<R> |
|
| UnaryOp.Xor |
|
| UnaryOperation |
A Go unary expression's operator together with its operand
|
| UnaryOperation.Builder |
|
| VarDecl |
A Go variable declaration: one or more var specs
|
| VarDecl.Builder |
|
| VarSpec |
A Go var spec: an identifier list with a type, an initializer expression list, or both
|
| VarSpec.Builder |
|