remove dependency on settings

This commit is contained in:
Mohamed Hegazy 2014-07-23 17:41:37 -07:00
parent 3bfc294123
commit e5d810384c
2 changed files with 7 additions and 2 deletions

View file

@ -480,8 +480,14 @@ module TypeScript.Services {
var oldProgram = this.program;
if (oldProgram) {
var oldSettings = this.program.getCompilerOptions();
// If the language version changed, then that affects what types of things we parse. So
// we have to dump all syntax trees.
// TODO: handle propagateEnumConstants
var settingsChangeAffectsSyntax = oldSettings.target !== compilationSettings.target;
var changesInCompilationSettingsAffectSyntax =
oldSettings && compilationSettings && !compareDataObjects(oldSettings, compilationSettings) && settingsChangeAffectsSyntax(oldSettings, compilationSettings);
oldSettings && compilationSettings && !compareDataObjects(oldSettings, compilationSettings) && settingsChangeAffectsSyntax;
var oldSourceFiles = this.program.getSourceFiles();
for (var i = 0, n = oldSourceFiles.length; i < n; i++) {

View file

@ -46,7 +46,6 @@
/// <reference path='compiler\referenceResolution.ts' />
/// <reference path='compiler\precompile.ts' />
/// <reference path='compiler\bloomFilter.ts' />
/// <reference path='compiler\settings.ts' />
/// <reference path='compiler\flags.ts' />
/// <reference path='compiler\types.ts' />
/// <reference path='compiler\ast.ts' />