Commit graph

23 commits

Author SHA1 Message Date
Andy 7c515bf6e8
Remove toSortedArray and toDeduplicatedSortedArray, use sort and sortAndDeduplicate (#28214) 2018-10-30 08:41:31 -07:00
Wesley Wigham 59854bbd55
Inspect all possible module paths when looking for the best one to create a specifier with (#25850)
* Inspect all possible specifier paths when looking for the best one

* Add missing secondary option from test
2018-07-24 13:56:21 -07:00
Sheetal Nandi d246c3c2bd Disable source maps and declaration emit for the json module
Fixes #24546
2018-06-01 18:31:58 -07:00
Andy e53e56cf82
Enable '--strictNullChecks' (#22088)
* Enable '--strictNullChecks'

* Fix API baselines

* Make sys.getEnvironmentVariable non-nullable

* make properties optional instead of using `| undefined` in thier type

* reportDiagnostics should be required

* Declare firstAccessor as non-nullable

* Make `some` a type guard

* Fix `getEnvironmentVariable` definition in tests

* Pretend transformFlags are always defined

* Fix one more use of sys.getEnvironmentVariable

* `requiredResponse` accepts undefined, remove assertions

* Mark optional properties as optional instead of using `| undefined`

* Mark optional properties as optional instead of using ` | undefined`

* Remove unnecessary null assertions

* Put the bang on the declaration instead of every use

* Make `createMapFromTemplate` require a parameter

* Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional

* Plumb through undefined in emitLsit and EmitExpressionList

* `ElementAccessExpression.argumentExpression` can not be `undefined`

* Add overloads for `writeTokenText`

* Make `shouldWriteSeparatingLineTerminator` argument non-nullable

* Make `synthesizedNodeStartsOnNewLine` argument required

* `PropertyAssignment.initializer` cannot be undefined

* Use one `!` at declaration site instead of on every use site

* Capture host in a constant and avoid null assertions

* Remove few more unused assertions

* Update baselines

* Use parameter defaults

* Update baselines

* Fix lint

* Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions

* Make Node#symbol and Type#symbol non-optional to reduce assertions

* Make `flags` non-nullable to reduce assertions

* Convert some asserts to type guards

* Make `isNonLocalAlias` a type guard

* Add overload for `getSymbolOfNode` for `Declaration`

* Some more `getSymbolOfNode` changes

* Push undefined suppression into `typeToTypeNodeHelper`

* `NodeBuilderContext.tracker` is never `undefined`

* use `Debug.assertDefined`

* Remove unnecessary tag

* Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 14:46:57 -07:00
Wesley Wigham cb42086bab
Fix RWC tsconfig and lib paths (#23979)
* Fix RWC tsconfig paths

* Fix lints

* move helper from utils into vpath
2018-05-08 17:07:54 -07:00
Sheetal Nandi 15f9ea3d14 Merge branch 'master' into requireJson 2018-05-03 15:35:54 -07:00
Ron Buckton c9c562afac Reorganize and remove duplication 2018-04-24 10:48:55 -07:00
Ron Buckton 6b79161f65 More cleanup and reorganization 2018-04-19 16:48:50 -07:00
Ron Buckton 0322d71515 Cleanup and reorganize fakes 2018-04-19 11:30:03 -07:00
Ron Buckton 1cbe930e06 Merge branch 'master' into vfs 2018-04-17 14:39:20 -07:00
Ron Buckton 4d8d51452c Migrate core.ts 2018-01-30 11:57:47 -08:00
Ron Buckton cda87282b4 Update build script 2018-01-24 10:57:18 -08:00
Ron Buckton 774ed0c47a Update build script 2018-01-23 10:27:20 -08:00
Ron Buckton ee415576b6 More consistent POSIX-like virtual file system. 2018-01-19 21:58:46 -08:00
Ron Buckton 9c25443913 Minor cleanup/comments 2017-12-21 11:43:08 -08:00
Ron Buckton e426257d8c Revert more baselines, add jake task for typemock 2017-12-19 13:40:32 -08:00
Ron Buckton 7944f5082b Merge branch 'master' into vfs 2017-12-18 12:12:51 -08:00
Ron Buckton 1cb1088e8a Update projects tests to use vfs 2017-12-10 17:35:42 -08:00
Ron Buckton 791c01eb98 Deprecate GeneratedFile 2017-11-10 14:55:04 -08:00
Ron Buckton cd0809e4d6 Deprecate CompilerResult 2017-11-10 13:52:12 -08:00
Ron Buckton 4697ba3e50 Add support for variations in module/target in compiler tests 2017-11-09 18:35:24 -08:00
Ron Buckton cf261c34aa Retire Harness.compileFiles 2017-11-09 16:26:07 -08:00
Ron Buckton 8245f6246d Update Harness.compileFiles to use vfs 2017-11-09 16:01:33 -08:00