Versions in this module Expand all Collapse all v0 v0.0.6 Mar 22, 2026 v0.0.5 Mar 22, 2026 Changes in this version + func Evaluate(expr ConstExpr) (any, error) + type Annotation struct + Name string + Params map[string]ConstExpr + Pos Position + type BinaryExpr struct + Left ConstExpr + Op TokenKind + Right ConstExpr + TokenPos Position + func (e *BinaryExpr) ExprPos() Position + type BoolLiteral struct + TokenPos Position + Value bool + func (e *BoolLiteral) ExprPos() Position + type CharLiteralExpr struct + TokenPos Position + Value string + func (e *CharLiteralExpr) ExprPos() Position + type ConstExpr interface + ExprPos func() Position + type ConstantDecl struct + ConstName string + Pos Position + Type *TypeSpecifier + Value ConstExpr + type Definition interface + GetAnnotations func() []*Annotation + GetName func() string + type Direction int + const DirectionIn + const DirectionInOut + const DirectionNone + const DirectionOut + func (d Direction) String() string + type Document struct + Definitions []Definition + Imports []*ImportDecl + Package *PackageDecl + func Parse(filename string, src []byte) (*Document, error) + func ParseFile(filename string) (*Document, error) + type EnumDecl struct + Annots []*Annotation + BackingType *TypeSpecifier + EnumName string + Enumerators []*Enumerator + Pos Position + func (d *EnumDecl) GetAnnotations() []*Annotation + func (d *EnumDecl) GetName() string + type Enumerator struct + Name string + Pos Position + Value ConstExpr + type FieldDecl struct + Annots []*Annotation + DefaultValue ConstExpr + FieldName string + Pos Position + Type *TypeSpecifier + type FloatLiteral struct + TokenPos Position + Value string + func (e *FloatLiteral) ExprPos() Position + type IdentExpr struct + Name string + TokenPos Position + func (e *IdentExpr) ExprPos() Position + type ImportDecl struct + Name string + Pos Position + type IntegerLiteral struct + TokenPos Position + Value string + func (e *IntegerLiteral) ExprPos() Position + type InterfaceDecl struct + Annots []*Annotation + Constants []*ConstantDecl + IntfName string + Methods []*MethodDecl + NestedTypes []Definition + Oneway bool + Pos Position + func (d *InterfaceDecl) GetAnnotations() []*Annotation + func (d *InterfaceDecl) GetName() string + type JavaWireField struct + Condition string + GoType string + Name string + WriteMethod string + type Lexer struct + Column int + Filename string + Line int + Offset int + Src []byte + func NewLexer(filename string, src []byte) *Lexer + func (l *Lexer) Next() Token + type MethodDecl struct + Annots []*Annotation + MethodName string + Oneway bool + Params []*ParamDecl + Pos Position + ReturnType *TypeSpecifier + TransactionID int + type NullLiteral struct + TokenPos Position + func (e *NullLiteral) ExprPos() Position + type PackageDecl struct + Name string + Pos Position + type ParamDecl struct + Annots []*Annotation + Direction Direction + ParamName string + Pos Position + Type *TypeSpecifier + type ParcelableDecl struct + Annots []*Annotation + Constants []*ConstantDecl + CppHeader string + Fields []*FieldDecl + JavaWireFormat []JavaWireField + NdkHeader string + NestedTypes []Definition + ParcName string + Pos Position + RustType string + func (d *ParcelableDecl) GetAnnotations() []*Annotation + func (d *ParcelableDecl) GetName() string + type Position struct + Column int + Filename string + Line int + func (p Position) String() string + type StringLiteralExpr struct + TokenPos Position + Value string + func (e *StringLiteralExpr) ExprPos() Position + type TernaryExpr struct + Cond ConstExpr + Else ConstExpr + Then ConstExpr + TokenPos Position + func (e *TernaryExpr) ExprPos() Position + type Token struct + Kind TokenKind + Pos Position + Value string + type TokenKind int + const TokenAmp + const TokenAmpAmp + const TokenAnnotation + const TokenAssign + const TokenBang + const TokenBangEq + const TokenCaret + const TokenCharLiteral + const TokenColon + const TokenComma + const TokenConst + const TokenDot + const TokenEOF + const TokenEnum + const TokenEqEq + const TokenError + const TokenFalse + const TokenFloatLiteral + const TokenGreaterEq + const TokenIdent + const TokenImport + const TokenIn + const TokenInout + const TokenIntLiteral + const TokenInterface + const TokenLAngle + const TokenLBrace + const TokenLBracket + const TokenLParen + const TokenLShift + const TokenLessEq + const TokenMinus + const TokenNull + const TokenOneway + const TokenOut + const TokenPackage + const TokenParcelable + const TokenPercent + const TokenPipe + const TokenPipePipe + const TokenPlus + const TokenQuestion + const TokenRAngle + const TokenRBrace + const TokenRBracket + const TokenRParen + const TokenRShift + const TokenSemicolon + const TokenSlash + const TokenStar + const TokenStringLiteral + const TokenTilde + const TokenTrue + const TokenUnion + const TokenVoid + func (k TokenKind) String() string + type TypeSpecifier struct + Annots []*Annotation + FixedSize string + IsArray bool + Name string + Pos Position + TypeArgs []*TypeSpecifier + type UnaryExpr struct + Op TokenKind + Operand ConstExpr + TokenPos Position + func (e *UnaryExpr) ExprPos() Position + type UnionDecl struct + Annots []*Annotation + Constants []*ConstantDecl + Fields []*FieldDecl + NestedTypes []Definition + Pos Position + UnionName string + func (d *UnionDecl) GetAnnotations() []*Annotation + func (d *UnionDecl) GetName() string