createFrom

open fun createFrom(@NotNull type: @NotNull String, resolveAlias: Boolean, frontend: LanguageFrontend): Type

A specialized version of the type parsing function that needs a language frontend and does magic with generics and typedefs. This is legacy code and currently only used for CXX frontend and should be removed at some point.


@NotNull
open fun createFrom(@NotNull type: @NotNull String, language: Language<out LanguageFrontend>, resolveAlias: Boolean, ctx: TranslationContext): @NotNull Type

Use this function for parsing new types and obtaining a new Type the TypeParser creates from the typeString.

Return

new type representing the type string. If an exception occurs during the parsing, UnknownType is returned

Parameters

type

string with type information

language

the language in which the type exists.

resolveAlias

should replace with original type in typedefs

ctx

the translation context