Commit Graph

32018 Commits

Author SHA1 Message Date
Sheetal Nandi 2b10b68d1c Test that shows stripInternal of enum member prints multiple blank lines for the enum members 2019-02-22 13:28:24 -08:00
Wesley Wigham a41a27694a Fix baseline-accept-rwc (#30052) 2019-02-22 13:12:11 -08:00
Sheetal Nandi a63d69de7a Fix incorrect emit when internal method is inside internal interface 2019-02-22 13:03:46 -08:00
Sheetal Nandi 23cd45bdef Test when internal and text region dont mix well together 2019-02-22 12:49:45 -08:00
Sheetal Nandi 22804c10ca Allow away to only test baselines excluding all other file read checks that are not going to change per scenario 2019-02-22 12:24:59 -08:00
Sheetal Nandi 4dc8ac7500 Fix the crash found while compiling src/compiler 2019-02-22 10:53:31 -08:00
TypeScript Bot 999eb0b9ed Update user baselines (#30046) 2019-02-22 08:56:15 -08:00
Sheetal Nandi 494bd92f1b Report error if overwriting buildInfo of another project reference 2019-02-21 19:34:20 -08:00
Wesley Wigham fb0dcd4987 Have runtests always throw on failure, make rm stream signal end of read queue (#30035) 2019-02-21 18:17:53 -08:00
Sheetal Nandi 89c4c4f684 Update the message to not just mean javascript since we might need to regenerate .d.ts as well 2019-02-21 17:52:15 -08:00
Sheetal Nandi 1e24cd19a8 Allow empty own source files 2019-02-21 17:36:20 -08:00
Sheetal Nandi 29862cecdf Refactoring for outFile tests 2019-02-21 15:18:01 -08:00
Wenlu Wang 592396d40a expose token flags and numeric flags (#29897)
* expose token flags and numeric flags

* hide hide useless token flags
2019-02-21 15:09:37 -08:00
Daniel Rosenwasser ae836eb854 Merge pull request #30028 from Microsoft/betterOverloadErrors
Better overload incompatibility errors
2019-02-21 13:53:31 -08:00
Sheetal Nandi bc4186cee5 Update the programBuildInfo to be platform and change independent so we can baseline it safely 2019-02-21 13:52:21 -08:00
Sheetal Nandi 7d464b81d4 Redirect getProgramBuildInfo onto builder so that we can test it for baselines more easily 2019-02-21 13:21:52 -08:00
Sheetal Nandi ad72aef4b1 Correctly set sourceFileInfo for bundle when generating output without creating program 2019-02-21 12:54:00 -08:00
Sheetal Nandi e9fb843e56 Add test to verify incremental build is same as if its built clean 2019-02-21 12:46:04 -08:00
Daniel Rosenwasser d6bb3ee64c Accepted baselines. 2019-02-21 11:02:21 -08:00
Daniel Rosenwasser 4a256abc8a Give a related span pointing to the implementation signature when reporting incompatibility. 2019-02-21 10:51:18 -08:00
Daniel Rosenwasser cee933ff09 Be more specific in errors. 2019-02-21 10:50:14 -08:00
Sheetal Nandi 32026a26f9 Accept public Baselines 2019-02-21 10:36:52 -08:00
Sheetal Nandi 86b610df4b Merge branch 'master' into incrementalBuildInfo 2019-02-21 10:32:09 -08:00
Sheetal Nandi db2cfa00a2 Fix emit when internal propogates through multiple levels of references 2019-02-21 10:23:14 -08:00
Sheetal Nandi d25a6e1cc5 Combine d.ts and .js emit 2019-02-21 09:05:32 -08:00
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