Commit Graph

84 Commits

Author SHA1 Message Date
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
Jesse Schalken
daa70e3f23 Fix Stack Overflow and Gitter links in CONTRIBUTING.md 2016-02-04 11:38:21 +11:00
Prayag Verma
992dd05bc0 Typo fixes in CONTRIBUTING.md 2016-01-30 10:04:27 +05:30
Ryan Cavanaugh
e547a1abd2 Update CONTRIBUTING.md
Add guidelines for logging issues
2016-01-14 11:30:02 -08:00
Daniel Rosenwasser
4c9575ac0c Update CONTRIBUTING.md
Removed inline triple backticks.
2015-12-03 11:29:13 -08:00
Adam Freidin
f8d2a03630 clarify documentation 2015-12-03 10:41:02 -08:00
Adam Freidin
20cce6ebd3 fix instructions for contributing to lib.d.ts 2015-12-03 09:23:46 -08:00
Mohamed Hegazy
244b26d762 Update CONTRIBUTING.md 2015-11-02 17:08:14 -08:00
Mohamed Hegazy
4a7804337c Update CONTRIBUTING.md 2015-11-02 17:07:14 -08:00
Mohamed Hegazy
0c3d52e8b1 Update CONTRIBUTING.md
respond to review comments
2015-10-29 17:33:09 -07:00
Mohamed Hegazy
71cbaef79e Update documentation for fixing lib issues 2015-10-29 15:27:45 -07:00
Daniel Rosenwasser
67d43ad75f Just say all compiler options are supported. 2015-10-19 14:22:00 -07:00
Daniel Rosenwasser
174f8c3e6e Fixups. 2015-10-19 11:49:21 -07:00
Daniel Rosenwasser
e2c858fee6 Minor fixups. 2015-10-18 19:08:41 -07:00
Daniel Rosenwasser
14ea332d94 Updated test options in 'CONTRIBUTING.md'. 2015-10-18 16:34:02 -07:00
Nathan Shively-Sanders
72d6ec0667 Add missing newline after runtests/debug 2015-10-18 07:39:17 -07:00
Nathan Shively-Sanders
1c4a1169f2 Add debug=true option also 2015-10-18 07:35:56 -07:00
Nathan Shively-Sanders
952ea0f82b Add instructions on how to debug tests 2015-10-17 11:38:55 -07:00
Mohamed Hegazy
3ecad00e94 Update CONTRIBUTING.md
remove references to "only accepting pull requests of bug fixes"
2015-09-28 11:11:46 -07:00
Daniel Rosenwasser
41ca19c79b Fix heading level. 2015-06-08 12:00:34 -07:00
Daniel Rosenwasser
84e78e93da filename -> fileName 2015-06-08 11:58:59 -07:00
Daniel Rosenwasser
f8b6dedfb6 Added 'filename' metadata tag to 'CONTRIBUTING.md'. 2015-06-08 11:32:26 -07:00
ahmad-farid
a1ab10a42a Update CONTRIBUTING.md
Fixing a typo in Coding Guidelines link https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines (was missing an 'e')
2015-04-01 16:16:04 -07:00
Caitlin Potter
564dd2eb4a Document procedure for digital CLA signature in CONTRIBUTING.md
Closes #2237
2015-03-06 18:07:02 -05:00
Ryan Cavanaugh
a65496fd61 Update CONTRIBUTING.md 2014-10-24 10:36:02 -07:00
Mohamed Hegazy
d94fb10317 Update CONTRIBUTING.md
Add link to pdf version of CLA
2014-10-15 15:00:12 -07:00
Mohamed Hegazy
5e98138921 Fix typo in running the tests section 2014-09-04 09:47:32 -07:00
Simon Hürlimann
a2bd14d6b4 Typo fixed in CONTRIBUTION.
Simple type fix;-)
2014-07-25 21:14:52 +02:00
Mohamed Hegazy
e668756ac2 Update CONTRIBUTING.md
Add link to coding guidelines wiki page
2014-07-16 12:46:52 -07:00
Mohamed Hegazy
9f85b15ca1 add code review comments 2014-07-16 12:01:36 -07:00
Mohamed Hegazy
14d4881b2b add new lines 2014-07-15 17:40:28 -07:00
Mohamed Hegazy
61eea77056 remove some more smart quotes 2014-07-15 17:38:38 -07:00
Mohamed Hegazy
e59c4d7554 add contribution guidlines 2014-07-15 17:26:23 -07:00
Mohamed Hegazy
d7cb209806 add contribution guidlines 2014-07-15 17:13:54 -07:00