function createScanner(source, diagnosticHandler): Scanner
source
string
SourceFile
diagnosticHandler
DiagnosticHandler
Scanner