Commit graph

148 commits

Author SHA1 Message Date
Mohamed Hegazy 028e2024e9 Update LKG 2016-07-07 16:26:19 -07:00
Mohamed Hegazy 599b9b0e66 Update LKG 2016-07-07 12:02:47 -07:00
Mohamed Hegazy a039412373 Update LKG 2016-07-06 16:21:48 -07:00
Mohamed Hegazy 230c9cfbe7 Update LKG 2016-07-05 15:59:14 -07:00
Mohamed Hegazy f9338c69fc Update LKG 2016-06-27 16:28:31 -07:00
Mohamed Hegazy 9a55facfe3 Update LKG 2016-06-23 15:42:06 -07:00
Wesley Wigham c98166ccc7
Accept new LKG (LKGd via gulp) 2016-06-14 17:46:40 -07:00
Yui f235bf7db8 [Transforms] Merge master 06/06/2016 (#8991)
* Remove check narrowing only certain types, add test showing issues with this

* string literal case test

* Reconcile fix with CFA work

* Defaultable -> NotNarrowable to align with use

* Missed a defaultable in comments

* Add test for narrowing to unions of string literals

* Rewrite isInStringLiteral to accomodate for unterminated strings

* Refactor signatureHelp to expose helper functions

* Add support for completion in string literals

* Remove unused check

* Use const instead of let

* Fix error

* Formatting changes

* Use shorthand properties

* Add failing test for #8738

* Sort baseline reference identifier by name

* Detects assignment to internal module export clause, fixes #8738

* add SharedArrayBuffer

fix

* Factor out assignment op check

* Add test for composite assignment

* Factor out the behaviour and handles x++ and ++x

* Handles ES3 default as identifier name

* Fix missing else statement

* isNameOfExportedDeclarationInNonES6Module

* Reorder options alphabetically

* Mark diagnostics, and skipDefaultLibCheck as internal

* Allow an import of "foo.js" to be matched by a file "foo.ts"

* Improve loadModuleFromFile code

* Respond to PR comments

* Respond to more PR comments

* Fix test

* Actually merge from master

* Revert to old tryLoad implementation

* Run fixupParentReferences when parsing isolated jsDocComment

* initial revision of unit test support for project system in tsserver

* Allow wildcard ("*") patterns in ambient module declarations

* Add non-widening forms of null and undefined

* Create separate control flows for property declarations with initializers

* Add regression test

* Allow trailing commas in function parameter and argument lists

* Add tests

* Remove unused variable

* Add null check and CR feedback

* Support shorthand ambient module declarations

* Revert "Merge pull request #7235 from weswigham/narrow-all-types"

This reverts commit ef0f6c8fe4, reversing
changes made to 9f087cb62a.

* reuse the fixupParentReferences function

* Improve typing of && operator with --strictNullChecks

* Add test

* Respond to PR comments

* Respond to PR comments

* Add merging tests

* Use a function `stringify` to simplify calls to `JSON.stringify(xyz, undefined, 2)`

* Update tests

* Fix mistake

* Include indent in navigation bar protocol

Previously navbar01 test had indents when run in the browser but not when run from node. Now they run the same.

* Remove unnecessary restrictions in property access narrowing

* Fix fourslash test

* Add regression test

* Consider property declarations to be control flow containers

* Adding regression test

* Remove restriction on --target es5 and --module es6

* change type definition for Object.create

* Fix signature help

* Add "implicit any" warning for shorthand ambient modules

* Remove trailing whitespace

* Support using string values in enums for CompilerOptions in transpile methods

* Remove trailing whitespace in jakefile

* Make `jake runtests-browser` support test regexes with spaces

For example: `jake runtests-browser t="transpile .js files"` now works.

* Add another test

* factor out isJsxOrTsxExtension

* Move to a conformance test

* Revert "Revert "Merge pull request #7235 from weswigham/narrow-all-types""

This reverts commit fc3e040c51.

* Use inclusive flag, as originally done, but include almost everything

* Add additional tests

* Respond to PR comments

* Fix typo

* add tests for tsserver project system

* Fix test

* Allow case comparison to undefined and null in strict null checking mode

* Remove incorrectly added tests

* check if moduleResolution when verifying that program can be reused

* more tests for module resolution change and exclude

* Fix linting issues

* Merge JSDoc of assignments from function expressions

* Allow nested assignments in type guards

* Add tests

* Improve order of parameter's merged jsdoc

* Force LF newlines for LKG builds/non debug builds
Fixes 6630

* Create intersection types in type guards for unrelated types

* Split commentsFunction test into expr/decl

And renumber.

* Remove TODO comments

* Accept new baselines

* Add tests

* Remove comments

* Fix test helper

* Recognize relative path using in outDir property (#9025)

* Recognize relative path using in outDir property

* Add projects tests

* Add project .json files

* Update baselines

* Add comments

* Add test case

The test passes in 1.8 and fails in master.

* Return trace when exception happens

* Remove Long-Done TODO

AFAIK, the harness sources have been concatenated into `run.js` for as long as I've known. This stops executing them twice (and in turn makes debugging tests much easier, since you no longer have to debug into eval'd code).

* Allow primitive type guards with typeof on right

Previously, only type guards of the form `typeof x === 'string'` were
allowed. Now you can write `'string' === typeof x`.

* Primitive type guards are now order independent

* Fix comments in tests

* Add handleing for classes

* Add more tests for target=es5 module=es6

* addExportToArgumentListKind

* Accept baseline

* Add more tests

* wip-fixing transforms

* Adds progress indicators to the runtests-parallel build task.

* Fixed typo

* Fix comment

* Add test for out-of-range error

* Use proper method of not resolving alias

* Fix module loading error

(commandLineOptions_stringToEnum would be undefined if optionDeclarations wasn't loaded yet)

* Port 8739

* Update tests

* Update baselines

* Contextually type return statement in async function

* Remove stale files

* Undo change

* Improve perf

* Improve tests

* Fix sourcemaps for debugging tests

* Allow --sourceRoot with --inlineSources option
Fixes #8445

* this in parameter initializers resolves to class

Accept baselines now that the test passes.

* Add tests for more kinds of import/export

* Fix7334 Disallow async in functionExpression and ArrowFunction (#9062)

* Error when using async modifier in function-expression and arrow-function when target es5

* Add tests and baselines

* Resolve function-this in parameter initialisers when explicitly provided

* Allow null/undefined guard with null/undefined on left

Also add a test with baselines.

* Code review comments

* Update more diagnostic messages ES6->2015

Fix #8996 CC @mhegazy.

* Fixes an issue with runtests-parallel when global mocha is not installed.

* Update LKG

* Add tests

* fix baselines

* Recommend runtests-parallel in CONTRIBUTING

* Only inlineSourceMap when debugging through jake-browser (#9080)

* Only inlineSourceMap when debugging through jake-browser

* Address PR: fix typo in opt's property

* Manually port tests from PR 8470

* minor fix: add missing return clause

* Support using string values in enums for CompilerOptions in transpile methods

* Support using string values in enums for CompilerOptions in transpile methods

# Conflicts:
#	tests/cases/unittests/transpile.ts

* Fix test helper

* Add test for out-of-range error

* Fix module loading error

(commandLineOptions_stringToEnum would be undefined if optionDeclarations wasn't loaded yet)

* Use camel-case instead of snake-case (#9134)

* Manually add tests for PR 8988

* Allow wildcard ("*") patterns in ambient module declarations

* Respond to PR comments

* Add another test

* Improve perf

* Improve tests

* Update baseline from merging with master

* Address PR comment

* Update baseline

* Refactor how we retrieve binding-name cache in module transformer

* Temporary accept so we get a clean run-tests result
2016-06-14 11:36:57 -07:00
Mohamed Hegazy e6eb36ee71 Update LKG 2016-06-10 01:06:00 -07:00
Jonathan Toland 6923cba29a Update more diagnostic messages ES6->2015
Fix #8996 CC @mhegazy.
2016-06-09 18:06:35 -10:00
Mohamed Hegazy 1e41af30fe Update LKG 2016-05-25 12:27:29 -07:00
Mohamed Hegazy 58c8d345bc Update LKG 2016-05-25 12:17:57 -07:00
Ryan Cavanaugh 7173fa8d02 Merge pull request #8670 from RyanCavanaugh/fix8275
Automatically consume @types/ folders
2016-05-24 15:23:06 -07:00
Ryan Cavanaugh 4b133489a1 Add getDirectories to shims 2016-05-24 11:31:10 -07:00
Mohamed Hegazy b4adce66fc Update LKG 2016-05-21 12:35:35 -07:00
Juan Luis Boya García 589bf91dae Rebuilt lib 2016-05-20 13:05:56 +02:00
Mohamed Hegazy b0584b58fa Update LKG 2016-04-11 11:03:15 -07:00
Mohamed Hegazy 7ae6fcd65e Update LKG 2016-02-23 12:53:52 -08:00
Daniel Rosenwasser c69a9d1a5c Update README.md 2016-02-03 00:05:09 -08:00
Mohamed Hegazy 4b284abd51 Update LKG 2016-01-21 14:14:31 -08:00
pcbro 4d065ffbf8 Use gender-neutral language 2016-01-13 17:01:53 -06:00
Daniel Rosenwasser b291d8bc93 Update LKG. 2016-01-08 12:19:27 -05:00
Daniel Rosenwasser 8f9a23088c Update README.md 2015-12-03 11:28:06 -08:00
Daniel Rosenwasser 74934c3bfa Update README.md
"Flushes" is a pretty unappealing word.
2015-12-03 11:27:14 -08:00
Adam Freidin f8d2a03630 clarify documentation 2015-12-03 10:41:02 -08:00
Daniel Rosenwasser d3f338cb8b Updated LKG. 2015-11-11 12:24:40 -08:00
Daniel Rosenwasser 83c33551ae Added 'README.md' files to 'lib' and 'src/lib'. 2015-11-02 16:57:57 -08:00
Daniel Rosenwasser fc51ca749c Updated LKG. 2015-11-02 16:41:13 -08:00
Mohamed Hegazy d28acec24e Update LKG 2015-10-28 13:40:23 -07:00
Mohamed Hegazy 0aef9440f2 Update LKG 2015-10-28 11:41:27 -07:00
Ken Howard db2c885120 Updated LKG. 2015-10-26 17:17:23 -07:00
Daniel Rosenwasser d8237dc2f3 Updated the LKG. 2015-10-16 12:31:29 -07:00
Yui T d57ee1db79 Merge branch 'master' into errorsuperbeforethis
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/types.ts
2015-10-08 23:57:26 -07:00
Mohamed Hegazy c5a85c761f Update LKG 2015-09-21 02:06:36 -07:00
Punya Biswal 55218d64a5 Fix capitalization of minimumintegerDigits 2015-09-18 08:42:42 -04:00
Daniel Rosenwasser 4fedd77c33 Update LKG. 2015-09-15 15:18:59 -07:00
Mohamed Hegazy a44d8e76c6 Update LKG 2015-09-11 11:32:35 -07:00
Mohamed Hegazy 09309d8b6c Merge pull request #4695 from Microsoft/definitionsAsExternalModule
Change typescript.d.ts to be an external module instead of an ambient external module declaration
2015-09-10 17:07:58 -07:00
Mohamed Hegazy 50e122f901 Update LKG 2015-09-10 15:19:59 -07:00
Mohamed Hegazy 8a38a1e4b9 Change typescript.d.ts to be an external module instead of an ambient external module declaration 2015-09-08 12:26:29 -07:00
Mohamed Hegazy 5542e396d7 Update LKG 2015-08-28 17:52:47 -07:00
Mohamed Hegazy e047025ff9 Update LKG 2015-08-27 16:50:34 -07:00
Mohamed Hegazy 3d5f73b1f7 Update LKG 2015-08-27 15:26:29 -07:00
Ron Buckton e9dc96598c Update LKG 2015-08-27 14:03:19 -07:00
Mohamed Hegazy f9c3adeae0 Update LKG 2015-08-21 15:20:08 -07:00
Adi Dahiya 7f52d5054d Make TypeCheckerHost internal
Fixes #4346
2015-08-21 01:43:47 -04:00
Adi Dahiya fcc43a6730 Make createScanner external (fixes #4057) 2015-08-11 21:44:56 -04:00
Vladimir Matveev ad449ce0fa Moved LKG folder to lib 2015-07-27 10:07:07 -07:00