Commit graph

13120 commits

Author SHA1 Message Date
Wesley Wigham
cfe3aadeb3
Move unittests into harness 2016-07-11 17:42:52 -07:00
Wesley Wigham
fb20df0568
Have tsconfig for harness 2016-07-11 16:36:20 -07:00
Nathan Shively-Sanders
f19844fbe9 Merge pull request #9580 from Microsoft/compile-with-noImplicitThis
Compile with --noImplicitThis
2016-07-11 15:25:44 -07:00
zhengbli
c19512edb5 Add node flag check 2016-07-11 14:57:54 -07:00
Nathan Shively-Sanders
1d202f6274 Merge pull request #9622 from Microsoft/update-conflicting-baseline
Update conflicting baseline.
2016-07-11 14:10:40 -07:00
Sheetal Nandi
78a1ca7d50 Make setting properties explicit instead of using parameter properties 2016-07-11 14:02:23 -07:00
Nathan Shively-Sanders
fa0fab1523 Merge branch 'release-2.0' of https://github.com/Microsoft/TypeScript into release-2.0 2016-07-11 13:54:22 -07:00
Nathan Shively-Sanders
6414a5721c Remove another use of this, in program.ts 2016-07-11 13:49:36 -07:00
Bill Ticehurst
2f768f622e Merge pull request #9607 from Microsoft/issue9542
Fix #9542 (allow files under node_modules to be included in the compilation).
2016-07-11 13:47:39 -07:00
Bill Ticehurst
78da46c435 Merge pull request #9614 from Microsoft/port9607
Port9607
2016-07-11 13:47:28 -07:00
Nathan Shively-Sanders
4e02bc61a2 Update conflicting baseline.
PR #9574 added a baseline that #9578 caused to be changed. The two PRs
went in so close to each other that the CI build didn't catch the change
to the new test's baseline.
2016-07-11 13:10:01 -07:00
Nathan Shively-Sanders
6ad4482bac Update conflicting baseline.
PR #9574 added a baseline that #9578 caused to be changed. The two PRs
went in so close to each other that the CI build didn't catch the change
to the new test's baseline.
2016-07-11 13:04:48 -07:00
zhengbli
73f741418f fix the issue that @property types are not recoganized 2016-07-11 13:01:05 -07:00
Nathan Shively-Sanders
4598c13eec Provide a symbol for salsa-inferred class types 2016-07-11 12:51:45 -07:00
Nathan Shively-Sanders
9ae04223e3 Fix multiple Salsa assignment-declarations
Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.
2016-07-11 12:51:24 -07:00
Nathan Shively-Sanders
2f8a5b34f6 Test for multiple salsa assignment-declarations 2016-07-11 12:50:59 -07:00
Yui
cfc20a956a [Transforms] Merging Master to Transforms on 06/21 (#9294)
* Initial support for globs in tsconfig.json

* Added caching, more tests

* Added stubs to ChakraHost interface for readDirectoryNames/readFileNames

* Fixed typos in comments

* Changed name of 'reduce' method added to FileSet

* Heavily revised implementation that relies on an updated 'readDirectory' API.

* more tests

* Minor update to shims.ts for forthcoming VS support for globs.

* Detailed comments for regular expressions and renamed some files.

* Comment cleanup

* Fixed new linter warnings

* Add upper limit for the program size, fix readDirectory for the symlink files

* Add comments

* CR feedback / Change upper limit / Add disableSizeLimit compiler option

* online and offline CR feedback

* Don't count current opened client file if it's TS file

* Speed up file searching

* Make language service optional for a project

* Fix failed tests

* Fix project updateing issue after editing config file

* Fixing linter and test errors

* Bringing back excludes error and fixing faulty test

* Fixing lint errors

* Passing regular expressions to native hosts

* Fix merging issues and multiple project scenario

* Refactoring

* add test and spit commandLineParser changes to another PR

* Fix #8523

* check the declaration and use order if both are not in module file

* Type guards using discriminant properties of string literal types

* Fix #9098: report missing function impelementation errors for merged classes and namespaces

* Narrow type in case/default sections in switch on discriminant property

* No implicit returns following exhaustive switch statements

* Narrow non-union types to ensure consistent results

* Add tests

* No Need to store dot token when parsing property access expression

* Added tests.

* Accepted baselines.

* Check tuple types when getting the type node's type.

* Accepted baselines.

* Fix #9173: clear out lib and types before creating a program in transpileModule

* Added tests.

* Accepted baselines.

* Always check type assertion types.

* Clear out unused compiler options when transpiling

* Accepted baselines.

* improve error message for extending interface

* accept baselines

* Use helper functions to simplify range tests

* Remove String, Number, and Boolean from TypeFlags.Falsy

* Add regression test

* Accept new baselines

* Allow property declarations in .js files

* Remove old test

* Do not use Object.assing in test

* Fix comment

* Refactor code to make if statements cheaper

* ignore casing when converting a source file path to relative path

* add tests & add branches for module interface

* Using baselines for transpile unittests (#9195)

* Conver to Transpile unittest to use baselines instead

* Add baselines

* Fix linting error

* use resolveEntityName to find interface

* add new tests for extends interface

* address code style

* Refactor navigation bar

* routine dom update

* Updating readDirectory for tsserverProjectSystem unit tests

* Array#map -> ts.map.

* Responding to PR feedback

* Add conditional index signature for Canvas2DContextAttributes (https://github.com/Microsoft/TypeScript/issues/9244)

* Add libcheck tests

* Add missing worker types

* Accept webworker baselines

* Classify `this` in parameter position as a keyword

* Adding more matchFiles test cases

* Use implicit boolean casts; it doesn't hurt performance

* Use getCanonicalFileName

* export interface used by other exported functions

* Fix from merging with master

* Update tests and baselines from merging with master

* Remove using dotToken as it is no longer needed

* Update baselines from removing dotToken

* Address PR: Add NodeEmitFlags to no indent when emit

* Address PR; and refactor setting NodeEmitFlags for createMemberAccessForPropertyName

* Update baselines
2016-07-11 12:41:12 -07:00
Nathan Shively-Sanders
cc83c799aa Merge pull request #9578 from Microsoft/fix-salsa-out-of-memory-on-methods-returning-this
Provide a symbol for salsa-inferred class types
2016-07-11 11:41:18 -07:00
Nathan Shively-Sanders
a138e6307f Avoid using this in object literals where possible 2016-07-11 11:30:22 -07:00
Nathan Shively-Sanders
135cc12218 Merge pull request #9574 from Microsoft/fix-union-of-salsa-property-types
Fix type union of differing Salsa assignment-properties
2016-07-11 11:29:02 -07:00
Sheetal Nandi
767da71cc1 Add __tokentag to Token 2016-07-11 11:28:14 -07:00
Sheetal Nandi
0764590691 Make sure the order of setting pos, end, flags, parent, kind is consistent among nodes, tokens and identifiers 2016-07-11 11:03:38 -07:00
Nathan Shively-Sanders
a3d9a85546 Add --pretty to tsconfigs 2016-07-11 11:00:06 -07:00
Nathan Shively-Sanders
6d21cf6434 Add more default options to gulpfile 2016-07-11 10:32:35 -07:00
Nathan Shively-Sanders
cf15e825ee Fix this in harness and improve gulpfile defaults 2016-07-11 09:30:58 -07:00
Bill Ticehurst
5f6eb5bb12 Removed duplicate logic
(cherry picked from commit 21bf801c6c)
2016-07-11 09:11:48 -07:00
Bill Ticehurst
dd86be4e08 Added missing test files
(cherry picked from commit 97025d026d)
2016-07-11 09:11:47 -07:00
Bill Ticehurst
f5769875e5 Fixed implicit any
(cherry picked from commit b75053cae3)
2016-07-11 09:11:47 -07:00
Bill Ticehurst
f8a92611eb fixed lint error
(cherry picked from commit a7467a1d2b)
2016-07-11 09:11:46 -07:00
Bill Ticehurst
5eba2e09fb Fixed the node tracking and a harness bug
(cherry picked from commit 2ab1143f1c)
2016-07-11 09:11:46 -07:00
Bill Ticehurst
ab45a56eda Updated test with relative import
(cherry picked from commit db54bda17b)
2016-07-11 09:11:46 -07:00
Bill Ticehurst
b360ad5f3c Fix module tracking
(cherry picked from commit ca874bdd17)
2016-07-11 09:11:45 -07:00
Bill Ticehurst
21bf801c6c Removed duplicate logic 2016-07-10 23:07:45 -07:00
Bill Ticehurst
97025d026d Added missing test files 2016-07-10 22:25:31 -07:00
Bill Ticehurst
b75053cae3 Fixed implicit any 2016-07-10 21:49:13 -07:00
Bill Ticehurst
a7467a1d2b fixed lint error 2016-07-10 21:40:38 -07:00
Bill Ticehurst
2ab1143f1c Fixed the node tracking and a harness bug 2016-07-10 20:54:07 -07:00
Bill Ticehurst
db54bda17b Updated test with relative import 2016-07-10 16:38:21 -07:00
Bill Ticehurst
ca874bdd17 Fix module tracking 2016-07-10 16:12:42 -07:00
Mohamed Hegazy
37eac5fb7f Update .mailmap 2016-07-09 23:35:58 -07:00
Daniel Rosenwasser
0961352fac Accepted baselines. 2016-07-08 17:50:01 -07:00
Daniel Rosenwasser
348a4e9689 Fixed up tests that used 'string[]' instead of 'TemplateStringsArray'. 2016-07-08 17:39:51 -07:00
Nathan Shively-Sanders
b543074861 Compile with --noImplicitThis
1. Add to various tsconfig.json
2. Add to Jakefile
3. Add annotations where needed.
4. Add workaround to shims.ts, which uses toplevel `this`.
2016-07-08 15:13:32 -07:00
Nathan Shively-Sanders
3c1a69b637 Provide a symbol for salsa-inferred class types 2016-07-08 12:52:54 -07:00
Zhengbo Li
81e8840136 Merge pull request #9565 from zhengbli/fixTypedefParsingIssue
Fix typedef parsing issue
2016-07-08 12:51:02 -07:00
zhengbli
ebc75a2511 Add test for parsed @typedef tag node shape 2016-07-08 10:02:00 -07:00
Nathan Shively-Sanders
f84b731911 Test for multiple salsa assignment-declarations 2016-07-08 09:40:54 -07:00
Nathan Shively-Sanders
4721b91527 Fix multiple Salsa assignment-declarations
Previously, all assignment-declarations needed to be of the same kind:
either all `this.p = ...` assignments or `C.prototype.p = ...`
assignments.
2016-07-08 09:26:58 -07:00
Mohamed Hegazy
f0d5ff6c94 Update harness getDirectories implementation for shims 2016-07-07 16:49:17 -07:00
Mohamed Hegazy
5c498cdc81 Parse the result of getDirectories call 2016-07-07 16:49:12 -07:00