parseTypeDeclaration

open fun parseTypeDeclaration(@NotNull typeDeclaration: String): TypeDeclaration<out Any>(source)

Parses a type declaration and returns it as a TypeDeclaration.

Return

the AST for the type declaration

Parameters

typeDeclaration

a declaration like "class X {}"

Throws

if the source code has parser errors