Commit Graph

28909 Commits

Author SHA1 Message Date
Sheetal Nandi 4bef3ac6a1 Because we already have texts for fixing the emits, write them only if changed 2019-02-20 15:45:12 -08:00
Wesley Wigham b67f2d6bdf Remove jake (hopefully for real this time) (#29085)
* Remove jake (hopefully for real this time)

* Fix gulpfile non-lkg build, add sanity-check build to posttest on CI, accept older baseline style to go with lkgd build

* More docs/scripts jake -> gulp
2019-02-20 15:32:15 -08:00
Sheetal Nandi 224f3ca975 Enable other stripinternal test cases 2019-02-20 15:01:48 -08:00
Gabriela Araujo Britto 6b53489a4a Merge branch 'master' into convert-to-named-parameters 2019-02-20 13:24:09 -08:00
Sheetal Nandi d9311f96e5 Fix issue with .tsbuildinfo the .d.ts emit when emitting without creating program 2019-02-20 12:55:08 -08:00
Daniel Rosenwasser 4e3efc2e90 fix no space before equal operator in type parameter (#29990)
fix no space before equal operator in type parameter
2019-02-20 12:16:18 -08:00
Sheetal Nandi 1c8970d30b Handle synthetic references better 2019-02-20 11:37:45 -08:00
Gabriela Araujo Britto e40442d46a minor refactors 2019-02-20 11:13:04 -08:00
Sheetal Nandi 0cd7074e1b Handle emit when using prepends and the referencing project has --stripInternal true 2019-02-20 10:41:28 -08:00
Sheetal Nandi a0f3420001 Add sections to the prepend (to be later used for stripInternal) 2019-02-20 10:41:26 -08:00
Sheetal Nandi 53704227d0 Add test for multi level prepend 2019-02-20 10:41:24 -08:00
Sheetal Nandi aa773e0705 Tests for strip internal 2019-02-20 10:41:21 -08:00
Sheetal Nandi a881391dc9 Merge branch 'master' into incrementalBuildInfo 2019-02-20 10:37:44 -08:00
xiaofa 7c8c6cf4d0 fix no space before equal operator in type parameter 2019-02-20 18:12:09 +08:00
Wesley Wigham ee17915801 Fix build breaks (#29977)
* Some callbacks in watchUtilities werent being strictly checked due to the structural fallback

* Add direct dependeny on ms since mocha removed its impl

* Manually init stats collection on base runner like mocha.run now does
2019-02-19 14:30:58 -08:00
Gabriela Araujo Britto 754f4a45b6 refactor expected test output 2019-02-19 14:23:26 -08:00
Gabriela Araujo Britto edf0cec3dd add tests for inherited constructor and method 2019-02-19 14:22:59 -08:00
Gabriela Araujo Britto 17b89653c2 include trailing trivia after expression in getAdjustedEndPosition if endPosition is include 2019-02-19 14:20:37 -08:00
Anders Hejlsberg 071708f8a7 Merge pull request #29959 from Microsoft/noResolvedTypeOverwrite
Never overwrite resolved types of symbols
2019-02-19 12:22:44 -08:00
Wesley Wigham eafff75c2a Remove diagnostic dependent output in structuredTypeRelatedTo (#29817)
* Unify variance probing error exceptions between interfaces/aliases

* Consistiently return false on variance probe failure

* Remove strictFunctionTypes early bail from getVariances so independent type parameters are correctly measured

* Fix lint, remove now-redundant change from covariant void check function
2019-02-19 11:39:16 -08:00
Ryan Cavanaugh 9d9cfaff16 Merge pull request #29948 from tomholub/patch-1
update docs: dated build cmd
2019-02-19 10:23:56 -08:00
Gabriela Araujo Britto 78968b1281 don't provide refactor in js file 2019-02-19 09:10:27 -08:00
Anders Hejlsberg d0cb047189 Accept new baselines 2019-02-19 07:04:31 -10:00
Anders Hejlsberg f19191b081 Add tests 2019-02-19 07:02:50 -10:00
Anders Hejlsberg 451f65332c Improve contextual typing by generic rest parameter 2019-02-19 07:02:37 -10:00
Anders Hejlsberg ecfd40891f Accept new baselines 2019-02-18 07:25:22 -10:00
Anders Hejlsberg 059fd2d42e Never overwrite resolved type of symbol 2019-02-18 07:25:08 -10:00
Tom J 540aeb6073 update docs: dated build cmd
Hopefully I didn't miss something obvious.

Running `gulp build` as suggested causes the following:
```
$ gulp build
[18:26:11] Using gulpfile ~/git/TypeScript/Gulpfile.js
[18:26:11] Task never defined: build
[18:26:11] To list available tasks, try running: gulp --tasks
```

```
$ gulp --tasks
gulp --tasks
[18:21:26] Tasks for ~/git/TypeScript/Gulpfile.js
[18:21:26] ├── lib                           Builds the library targets
...
...
[18:21:27] ├─┬ default                       Runs 'local'
[18:21:27] │ └─┬ <series>
[18:21:27] │   └─┬ local
[18:21:27] │     └─┬ <series>
[18:21:27] │       ├── buildFoldStart
[18:21:27] │       ├─┬ <parallel>
[18:21:27] │       │ ├── generateLibs
[18:21:27] │       │ └─┬ <series>
[18:21:27] │       │   ├── buildScripts
[18:21:27] │       │   └── generateDiagnostics
[18:21:27] │       ├─┬ <parallel>
[18:21:27] │       │ ├── localize
[18:21:27] │       │ ├── buildTsc
[18:21:27] │       │ ├── buildServer
[18:21:27] │       │ ├─┬ <series>
[18:21:27] │       │ │ ├── flattenServicesConfig
[18:21:27] │       │ │ ├── buildTypescriptServicesOut
[18:21:27] │       │ │ ├── createTypescriptServicesJs
[18:21:27] │       │ │ ├── createTypescriptServicesDts
[18:21:27] │       │ │ ├── createTypescriptJs
[18:21:27] │       │ │ ├── createTypescriptDts
[18:21:27] │       │ │ └── createTypescriptStandaloneDts
[18:21:27] │       │ └─┬ <series>
[18:21:27] │       │   ├── flattenTsServerProject
[18:21:27] │       │   ├── buildServerLibraryOut
[18:21:27] │       │   ├── createServerLibraryJs
[18:21:27] │       │   └── createServerLibraryDts
[18:21:27] │       └── buildFoldEnd
[18:21:27] └── help                          Prints the top-level tasks.
```

The default task seems to do something useful:
```
$ gulp
[18:21:49] Using gulpfile ~/git/TypeScript/Gulpfile.js
[18:21:49] Starting 'default'...
[18:21:49] Starting 'local'...
[18:21:49] Starting 'buildFoldStart'...
[18:21:49] Finished 'buildFoldStart' after 726 μs
[18:21:49] Starting 'generateLibs'...
[18:21:49] Starting 'buildScripts'...
[18:21:49] Finished 'generateLibs' after 207 ms
[18:21:49] Finished 'buildScripts' after 686 ms
[18:21:49] Starting 'generateDiagnostics'...
[18:21:49] Finished 'generateDiagnostics' after 700 μs
[18:21:49] Starting 'localize'...
[18:21:49] Starting 'buildTsc'...
[18:21:49] Starting 'buildServer'...
[18:21:49] > /usr/bin/node scripts/generateLocalizedDiagnosticMessages.js src/loc/lcl built/local src/compiler/diagnosticMessages.generated.json
[18:21:49] Starting 'flattenServicesConfig'...
[18:21:49] Starting 'flattenTsServerProject'...
[18:21:49] Finished 'flattenServicesConfig' after 54 ms
[18:21:49] Starting 'buildTypescriptServicesOut'...
[18:21:49] Finished 'flattenTsServerProject' after 54 ms
[18:21:49] Starting 'buildServerLibraryOut'...
[18:21:53] Finished 'localize' after 3.38 s
[18:23:17] Finished 'buildTsc' after 1.45 min
[18:23:17] Finished 'buildServer' after 1.45 min
[18:23:17] Finished 'buildTypescriptServicesOut' after 1.45 min
[18:23:17] Starting 'createTypescriptServicesJs'...
[18:23:17] Finished 'buildServerLibraryOut' after 1.45 min
[18:23:17] Starting 'createServerLibraryJs'...
[18:23:17] Finished 'createServerLibraryJs' after 635 ms
[18:23:17] Starting 'createServerLibraryDts'...
[18:23:18] Finished 'createTypescriptServicesJs' after 642 ms
[18:23:18] Starting 'createTypescriptServicesDts'...
[18:23:18] Finished 'createTypescriptServicesDts' after 20 ms
[18:23:18] Starting 'createTypescriptJs'...
[18:23:18] Finished 'createServerLibraryDts' after 30 ms
[18:23:18] Finished 'createTypescriptJs' after 260 ms
[18:23:18] Starting 'createTypescriptDts'...
[18:23:18] Finished 'createTypescriptDts' after 4.47 ms
[18:23:18] Starting 'createTypescriptStandaloneDts'...
[18:23:18] Finished 'createTypescriptStandaloneDts' after 5.59 ms
[18:23:18] Starting 'buildFoldEnd'...
[18:23:18] Finished 'buildFoldEnd' after 350 μs
[18:23:18] Finished 'local' after 1.48 min
[18:23:18] Finished 'default' after 1.48 min
```

I'm I'm guessing wrongly, please reject & correct the docs to whatever the right way to run builds is.
2019-02-17 18:28:32 +00:00
Gabriela Araujo Britto a773046181 copy argument comments to property 2019-02-15 16:48:54 -08:00
Gabriela Araujo Britto b6c8382c78 replace argument list instead of whole call when refactoring 2019-02-15 15:51:20 -08:00
Gabriela Araujo Britto eef3da5b6b create new ConfigurableStart and ConfigurableEnd options and rename them 2019-02-15 15:38:10 -08:00
Gabriela Araujo Britto b93afffaf7 rename refactor tests 2019-02-15 15:36:11 -08:00
Sheetal Nandi b2b360a64f Merge pull request #29816 from Microsoft/ti
Use execFileSync in typing installer
2019-02-15 10:47:04 -08:00
Ryan Cavanaugh d517713f50 Merge pull request #29935 from RyanCavanaugh/md5_2_sha
Use sha256 to hash file contents
2019-02-15 10:28:23 -08:00
Anders Hejlsberg 691df0e4b5 Merge pull request #29923 from Microsoft/freeTypeFlags
Free up some type flags
2019-02-15 09:10:21 -08:00
Ryan Cavanaugh 7983813be0 Use sha256 to hash file contents 2019-02-15 09:03:15 -08:00
Anders Hejlsberg 8f52f21f0d Fix broken check in getUnionType (check was always true) 2019-02-15 06:22:17 -08:00
Anders Hejlsberg 3e745e65cd Simplify flags propagation logic 2019-02-14 15:22:19 -08:00
Nathan Shively-Sanders ed8c81a563 Update lodash dependency (#29903)
For security reasons
2019-02-14 14:56:22 -08:00
Anders Hejlsberg b57956673e Move TypeFlags.PropapatingFlags to ObjectFlags to free up 3 flags 2019-02-14 14:42:55 -08:00
Ryan Cavanaugh cc987a1921 Merge pull request #29896 from dragomirtitian/GH-29778
Improve error message for using value as type
2019-02-14 13:14:20 -08:00
Sheetal Nandi b958f1c8b5 Merge branch 'master' into incrementalBuildInfo 2019-02-14 12:19:10 -08:00
Wesley Wigham 84076a5535 Add diagnostic context for expando property declarations (#29905) 2019-02-13 22:54:33 -08:00
Titian Cernicova-Dragomir c358b0b4a5 Fixed tslint error. 2019-02-14 07:23:11 +02:00
Wesley Wigham 5ec35c1ee8 Readd configure-insiders task to Gulpfile (#29907)
It's identical to configure-nightly but with the flag changed from dev to insiders. We use it to manually publish an insiders build via pipeline, and went missing when we copied functionality from the jakefile.
2019-02-13 17:27:28 -08:00
Ron Buckton 5576c3ead8 Remove ES2015 and ContainsDefaultValueassignments flags 2019-02-13 16:07:52 -08:00
Gabriela Araujo Britto 05e9d6c9de fix reference checking 2019-02-13 15:34:18 -08:00
Nathan Shively-Sanders ad7702f15a Disable node 6 (#29832)
* Disable node 6

It exits LTS in a couple of months, and doesn't support async/await,
meaning that it blocks us from switching Travis to use gulp instead of
jake.

* Swap in node 8 for node 6
2019-02-13 12:57:35 -08:00
Gabriela Araujo Britto ec0e734708 return function expression name in getFunctionDeclarationNames 2019-02-13 11:36:59 -08:00
Gabriela Araujo Britto ef4db31e84 don't apply changes when unexpected reference is found 2019-02-13 11:35:44 -08:00