@@ -352,23 +352,21 @@ func (options *CompilerOptions) GetPathsBasePath(currentDirectory string) string
352
352
// SourceFileAffectingCompilerOptions are the precomputed CompilerOptions values which
353
353
// affect the parse and bind of a source file.
354
354
type SourceFileAffectingCompilerOptions struct {
355
- AllowUnreachableCode Tristate
356
- AllowUnusedLabels Tristate
357
- BindInStrictMode bool
358
- EmitScriptTarget ScriptTarget
359
- NoFallthroughCasesInSwitch Tristate
360
- ShouldPreserveConstEnums bool
355
+ AllowUnreachableCode Tristate
356
+ AllowUnusedLabels Tristate
357
+ BindInStrictMode bool
358
+ EmitScriptTarget ScriptTarget
359
+ ShouldPreserveConstEnums bool
361
360
}
362
361
363
362
func (options * CompilerOptions ) SourceFileAffecting () SourceFileAffectingCompilerOptions {
364
363
options .sourceFileAffectingCompilerOptionsOnce .Do (func () {
365
364
options .sourceFileAffectingCompilerOptions = SourceFileAffectingCompilerOptions {
366
- AllowUnreachableCode : options .AllowUnreachableCode ,
367
- AllowUnusedLabels : options .AllowUnusedLabels ,
368
- BindInStrictMode : options .AlwaysStrict .IsTrue () || options .Strict .IsTrue (),
369
- EmitScriptTarget : options .GetEmitScriptTarget (),
370
- NoFallthroughCasesInSwitch : options .NoFallthroughCasesInSwitch ,
371
- ShouldPreserveConstEnums : options .ShouldPreserveConstEnums (),
365
+ AllowUnreachableCode : options .AllowUnreachableCode ,
366
+ AllowUnusedLabels : options .AllowUnusedLabels ,
367
+ BindInStrictMode : options .AlwaysStrict .IsTrue () || options .Strict .IsTrue (),
368
+ EmitScriptTarget : options .GetEmitScriptTarget (),
369
+ ShouldPreserveConstEnums : options .ShouldPreserveConstEnums (),
372
370
}
373
371
})
374
372
return options .sourceFileAffectingCompilerOptions
0 commit comments