Type Parser
Class responsible for parsing the type definition and create the same Type as described by the type string, but complying to the CPG TypeSystem
Functions
Link copied to clipboard
Infers corresponding qualifier information for the type depending on the keywords.
Link copied to clipboard
Infers the corresponding storage type depending on the present storage keyword.
Link copied to clipboard
@NotNull
@NotNull
Parses the type from a char sequence and the supplied language.
open fun createFrom(@NotNull type: @NotNull String, resolveAlias: Boolean, lang: LanguageFrontend): Type
A specialized version of the type parsing function that needs a language frontend and does magic with generics and typedefs.
@NotNull
Use this function for parsing new types and obtaining a new Type the TypeParser creates from the typeString.
Link copied to clipboard
@NotNull
Does the same as createIgnoringAlias but explicitly does not use type alias resolution.
Link copied to clipboard
open fun isElaboratedTypeSpecifier(specifier: String, language: Language<out LanguageFrontend>): Boolean
Returns whether the specifier is part of an elaborated type specifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@NotNull
Reconstructs the type chain when the root node is modified e.g.