Crate go_types

Source
Expand description

This crate is part of the Goscript project. Please refer to https://goscript.dev for more information.

It’s a port of the the parser from the Go standard library https://github.com/golang/go/tree/release-branch.go1.12/src/go/types

§Feature

  • btree_map: Make it use BTreeMap instead of HashMap

Modules§

check
typ

Structs§

BuiltinInfo
DeclInfoKey
Displayer
ImportKey
ImportKey identifies an imported package by import path and source directory (directory containing the file containing the import). In practice, the directory may always be the same, or may not matter. Given an (import path, directory), an importer must always return the same package (but given two different import paths, an importer may still return the same package by mapping them to the same package paths).
Importer
LangObj
A LangObj describes a named language entity such as a package, constant, type, variable, function (incl. methods), or label.
ObjKey
PackageKey
ScopeKey
Selection
A Selection describes a selector expression x.f. For the declarations:
TCObjects
The container of all “managed” objects also works as a “global” variable holder
TraceConfig
TypeKey
Universe
Universe sets up the universe scope, the unsafe package and all the builtin types and functions
VarProperty

Enums§

Builtin
A Builtin is the id of a builtin function.
ConstValue
constant implements Values representing untyped Go constants and their corresponding operations.
EntityType
EntityType defines the types of LangObj entities
ExprKind
ExprKind describes the kind of an expression; the kind determines if an expression is valid in ‘statement context’.
OperandMode
An OperandMode specifies the (addressing) mode of an operand.
SelectionKind
SelectionKind describes the kind of a selector expression x.f (excluding qualified identifiers).

Traits§

SourceRead

Type Aliases§

Decls
LangObjs
Packages
Scopes
Types