GoLanguageFrontend
class GoLanguageFrontend(language: Language<GoLanguageFrontend>, ctx: TranslationContext) : LanguageFrontend<GoStandardLibrary.Ast.Node, GoStandardLibrary.Ast.Expr>
A language frontend for the GoLanguage. It makes use the internal go/ast package of the Go runtime to parse the AST of a Go program. We make use of JNA to call a dynamic library which exports C function wrappers around the Go API. This is needed because we cannot directly export Go structs and pointers to C.
Types
Link copied to clipboard
class DeclarationContext
This helper class contains values needed to properly decide in which state const declaration / specifications are in.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The current DeclarationContext. This is somewhat of a workaround since we cannot properly communicate state between different handlers. However, because within a LanguageFrontend, everything is parsed sequentially according to AST order, we can safely use this context here.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val language: Language<out LanguageFrontend<GoStandardLibrary.Ast.Node, GoStandardLibrary.Ast.Expr>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun registerPredicateListener(predicate: BiPredicate<Any, Node>, biConsumer: BiConsumer<Any, Node>)
Link copied to clipboard
Link copied to clipboard