@@ -357,14 +357,6 @@ module ts {
357357 forEachChild ( sourceFile , walk ) ;
358358 }
359359
360- export function getSyntacticDiagnostics ( sourceFile : SourceFile ) : Diagnostic [ ] {
361- if ( ! sourceFile . syntacticDiagnostics ) {
362- sourceFile . syntacticDiagnostics = sourceFile . referenceDiagnostics . concat ( sourceFile . parseDiagnostics ) ;
363- }
364-
365- return sourceFile . syntacticDiagnostics ;
366- }
367-
368360 function moveElementEntirelyPastChangeRange ( element : IncrementalElement , delta : number ) {
369361 if ( element . length ) {
370362 visitArray ( < IncrementalNodeArray > element ) ;
@@ -880,7 +872,6 @@ module ts {
880872 sourceFile . end = sourceText . length ;
881873 sourceFile . text = sourceText ;
882874
883- sourceFile . referenceDiagnostics = [ ] ;
884875 sourceFile . parseDiagnostics = [ ] ;
885876 sourceFile . bindDiagnostics = [ ] ;
886877 sourceFile . languageVersion = languageVersion ;
@@ -4698,15 +4689,15 @@ module ts {
46984689 referencedFiles . push ( fileReference ) ;
46994690 }
47004691 if ( diagnosticMessage ) {
4701- sourceFile . referenceDiagnostics . push ( createFileDiagnostic ( sourceFile , range . pos , range . end - range . pos , diagnosticMessage ) ) ;
4692+ sourceFile . parseDiagnostics . push ( createFileDiagnostic ( sourceFile , range . pos , range . end - range . pos , diagnosticMessage ) ) ;
47024693 }
47034694 }
47044695 else {
47054696 var amdModuleNameRegEx = / ^ \/ \/ \/ \s * < a m d - m o d u l e \s + n a m e \s * = \s * ( ' | " ) ( .+ ?) \1/ gim;
47064697 var amdModuleNameMatchResult = amdModuleNameRegEx . exec ( comment ) ;
47074698 if ( amdModuleNameMatchResult ) {
47084699 if ( amdModuleName ) {
4709- sourceFile . referenceDiagnostics . push ( createFileDiagnostic ( sourceFile , range . pos , range . end - range . pos , Diagnostics . An_AMD_module_cannot_have_multiple_name_assignments ) ) ;
4700+ sourceFile . parseDiagnostics . push ( createFileDiagnostic ( sourceFile , range . pos , range . end - range . pos , Diagnostics . An_AMD_module_cannot_have_multiple_name_assignments ) ) ;
47104701 }
47114702 amdModuleName = amdModuleNameMatchResult [ 2 ] ;
47124703 }
0 commit comments