remove dependency on settings
This commit is contained in:
parent
3bfc294123
commit
e5d810384c
|
@ -480,8 +480,14 @@ module TypeScript.Services {
|
||||||
var oldProgram = this.program;
|
var oldProgram = this.program;
|
||||||
if (oldProgram) {
|
if (oldProgram) {
|
||||||
var oldSettings = this.program.getCompilerOptions();
|
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 =
|
var changesInCompilationSettingsAffectSyntax =
|
||||||
oldSettings && compilationSettings && !compareDataObjects(oldSettings, compilationSettings) && settingsChangeAffectsSyntax(oldSettings, compilationSettings);
|
oldSettings && compilationSettings && !compareDataObjects(oldSettings, compilationSettings) && settingsChangeAffectsSyntax;
|
||||||
var oldSourceFiles = this.program.getSourceFiles();
|
var oldSourceFiles = this.program.getSourceFiles();
|
||||||
|
|
||||||
for (var i = 0, n = oldSourceFiles.length; i < n; i++) {
|
for (var i = 0, n = oldSourceFiles.length; i < n; i++) {
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
/// <reference path='compiler\referenceResolution.ts' />
|
/// <reference path='compiler\referenceResolution.ts' />
|
||||||
/// <reference path='compiler\precompile.ts' />
|
/// <reference path='compiler\precompile.ts' />
|
||||||
/// <reference path='compiler\bloomFilter.ts' />
|
/// <reference path='compiler\bloomFilter.ts' />
|
||||||
/// <reference path='compiler\settings.ts' />
|
|
||||||
/// <reference path='compiler\flags.ts' />
|
/// <reference path='compiler\flags.ts' />
|
||||||
/// <reference path='compiler\types.ts' />
|
/// <reference path='compiler\types.ts' />
|
||||||
/// <reference path='compiler\ast.ts' />
|
/// <reference path='compiler\ast.ts' />
|
||||||
|
|
Loading…
Reference in a new issue