parseModule

Parse a module from a string.

Tuple!(Module, "module_", Diagnostics, "diagnostics")
parseModule
(
AST = ASTCodegen
)
(
const(char)[] fileName
,
const(char)[] code = null
)

Parameters

fileName
Type: const(char)[]

file to parse

code
Type: const(char)[]

text to use instead of opening the file

Return Value

Type: Tuple!(Module, "module_", Diagnostics, "diagnostics")

the parsed module object

Meta