TypeScript/tests/baselines/reference/parserModule1.types
Bill Ticehurst 671191a584 Fixed up baselines
(cherry picked from commit f9fb68fbfc)
2016-02-11 14:07:34 -08:00

77 lines
1.8 KiB
Plaintext

=== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModule1.ts ===
export module CompilerDiagnostics {
>CompilerDiagnostics : typeof CompilerDiagnostics
export var debug = false;
>debug : boolean
>false : boolean
export interface IDiagnosticWriter {
>IDiagnosticWriter : IDiagnosticWriter
Alert(output: string): void;
>Alert : (output: string) => void
>output : string
}
export var diagnosticWriter: IDiagnosticWriter = null;
>diagnosticWriter : IDiagnosticWriter
>IDiagnosticWriter : IDiagnosticWriter
>null : null
export var analysisPass: number = 0;
>analysisPass : number
>0 : number
export function Alert(output: string) {
>Alert : (output: string) => void
>output : string
if (diagnosticWriter) {
>diagnosticWriter : IDiagnosticWriter
diagnosticWriter.Alert(output);
>diagnosticWriter.Alert(output) : void
>diagnosticWriter.Alert : (output: string) => void
>diagnosticWriter : IDiagnosticWriter
>Alert : (output: string) => void
>output : string
}
}
export function debugPrint(s: string) {
>debugPrint : (s: string) => void
>s : string
if (debug) {
>debug : boolean
Alert(s);
>Alert(s) : void
>Alert : (output: string) => void
>s : string
}
}
export function assert(condition: boolean, s: string) {
>assert : (condition: boolean, s: string) => void
>condition : boolean
>s : string
if (debug) {
>debug : boolean
if (!condition) {
>!condition : boolean
>condition : boolean
Alert(s);
>Alert(s) : void
>Alert : (output: string) => void
>s : string
}
}
}
}