Skip to content

Parser Types

Randall O'Reilly edited this page Dec 27, 2018 · 1 revision

The syms.Type struct contains the essential information about a type, including a Kinds value that organizes Primitive vs. Composite types and has the full scope of types for all supported languages.

Each Type Kind uses the Els type elements list to describe the essential properties of that type. For example, a map type has Els for the key and value types, while a struct has Els for each of its fields, etc. This should provide sufficient information for efficiently processing types of Parser Symbols to provide relevant completion data, etc. See Langs for more info.

Only basic name information is set by the AddType Parser Actions -- language-specific processing of the Parser Ast is used to fill in the details about each type.

Clone this wiki locally