createFrom

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. 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, scopeManager: ScopeManager): @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

scopeManager

optional, but required if resolveAlias is true


@NotNull
open fun createFrom(@NotNull name: @NotNull CharSequence, resolveAlias: Boolean, language: Language<out LanguageFrontend>): @NotNull Type
@NotNull
open fun createFrom(@NotNull name: @NotNull CharSequence, language: Language<out LanguageFrontend>): @NotNull Type

Parses the type from a char sequence and the supplied language.