Commit Graph

18857 Commits

Author SHA1 Message Date
Ron Buckton a766005d65 Merge pull request #9097 from Microsoft/transforms-importHelpers
[Transforms] Import external helpers module
2016-06-15 11:39:22 -07:00
Mohamed Hegazy 95ddfc7efc Do not use Object.assing in test 2016-06-15 11:38:28 -07:00
Ron Buckton f3d0b86e81 Short-circut when reporting errors for helpers. 2016-06-15 11:26:58 -07:00
Anders Hejlsberg a3a0c9877b Merge pull request #9188 from Microsoft/relaxLogicalAnd
Relax && operator typing
2016-06-15 11:07:54 -07:00
Andy e2376a74cc Merge pull request #9185 from Microsoft/simplify_range_tests
Use helper functions to simplify range tests
2016-06-15 11:04:58 -07:00
Ron Buckton 5e31b25af4 Merge branch 'transforms' into transforms-generators 2016-06-15 11:04:21 -07:00
Ron Buckton b65c648072 Merge branch 'transforms' into transforms-importHelpers 2016-06-15 11:02:52 -07:00
Yui 03d273ea5c Update baselines and fix failure when merged with master (#9172) 2016-06-15 11:02:29 -07:00
Andy Hanson 9b6472aec0 Remove old test 2016-06-15 11:00:27 -07:00
Andy Hanson dd0411a2f3 Allow property declarations in .js files 2016-06-15 09:42:52 -07:00
Anders Hejlsberg c9e5bcb276 Accept new baselines 2016-06-15 09:35:45 -07:00
Anders Hejlsberg 28b241e615 Add regression test 2016-06-15 09:28:45 -07:00
Anders Hejlsberg 6366a6d6a3 Remove String, Number, and Boolean from TypeFlags.Falsy 2016-06-15 09:28:28 -07:00
Andy Hanson 8a025fcff4 Use helper functions to simplify range tests 2016-06-15 09:05:15 -07:00
Herrington Darkholme 85434c59fc accept baselines 2016-06-15 20:55:50 +08:00
Herrington Darkholme 386fa3e1f6 improve error message for extending interface 2016-06-15 20:54:56 +08:00
Daniel Rosenwasser 74a784c8be Accepted baselines. 2016-06-14 22:38:35 -07:00
Mohamed Hegazy da3333e967 Clear out unused compiler options when transpiling 2016-06-14 19:24:38 -07:00
Daniel Rosenwasser 52a96ac819 Always check type assertion types. 2016-06-14 19:13:32 -07:00
Daniel Rosenwasser f786c5c187 Accepted baselines. 2016-06-14 19:03:00 -07:00
Daniel Rosenwasser 14c2bcf73a Added tests. 2016-06-14 19:02:47 -07:00
Ron Buckton d5f5d927af Merge branch 'transforms' into transforms-importHelpers 2016-06-14 18:23:51 -07:00
Ron Buckton a096b87c34 Updated baselines. 2016-06-14 18:23:31 -07:00
Mohamed Hegazy 38c89af6b2 Merge pull request #9174 from Microsoft/Fix9173
Fix #9173: clear out lib and types before creating a program in transpileModule
2016-06-14 18:05:06 -07:00
Ron Buckton 9073572843 Merge branch 'transforms' into transforms-generators 2016-06-14 18:04:48 -07:00
Vladimir Matveev 9775ce03ef merge with origin/master 2016-06-14 18:02:54 -07:00
Wesley Wigham 81d6c0718d Make builtLocalCompiler depend on the local servicesFile 2016-06-14 18:00:25 -07:00
Ron Buckton ea61f2b32b Added tests and fixed related emit issues. 2016-06-14 17:59:44 -07:00
Vladimir Matveev c3b1645868 fix tests issues 2016-06-14 17:51:19 -07:00
Wesley Wigham c98166ccc7 Accept new LKG (LKGd via gulp) 2016-06-14 17:46:40 -07:00
Mohamed Hegazy 784a76530c Fix #9173: clear out lib and types before creating a program in transpileModule 2016-06-14 17:44:57 -07:00
Wesley Wigham e0ffe05f02 Alter LKG task to let more be done in parallel 2016-06-14 17:40:33 -07:00
Wesley Wigham c7c2abbb8b Add needsUpdate check to lib tasks 2016-06-14 17:35:32 -07:00
Wesley Wigham 09ff5325ee Fix lssl task 2016-06-14 17:31:25 -07:00
Vladimir Matveev adb726643a add cancellation support 2016-06-14 17:30:55 -07:00
Wesley Wigham 121bead8d1 Fix run.js depending on the wrong local build target 2016-06-14 16:56:47 -07:00
Ron Buckton edf999fcbd Change symbol meaning for __extends resolution to be consistent with other helpers 2016-06-14 16:25:33 -07:00
Ron Buckton 76b34939d0 Resolve external helpers module and report errors for missing module/exports 2016-06-14 16:24:01 -07:00
Nathan Shively-Sanders cc8d193d4a Calculate readonly? on union/intersection creation 2016-06-14 16:14:59 -07:00
Kanchalai Tanglertsampan beb72f4057 Merge branch 'master' into transforms
# Conflicts:
#	Jakefile.js
#	src/compiler/emitter.ts
#	src/compiler/program.ts
#	src/compiler/types.ts
#	src/harness/harness.ts
#	src/services/services.ts
#	tests/baselines/reference/disallowAsyncModifierInES5.js
#	tests/baselines/reference/es5andes6module.js
#	tests/baselines/reference/es6ExportClauseWithAssignmentInEs5.js
#	tests/baselines/reference/es6modulekindWithES5Target.js
#	tests/baselines/reference/es6modulekindWithES5Target11.js
#	tests/baselines/reference/es6modulekindWithES5Target2.js
#	tests/baselines/reference/es6modulekindWithES5Target3.js
#	tests/baselines/reference/es6modulekindWithES5Target6.js
#	tests/cases/unittests/transpile.ts
#	tests/cases/unittests/tsserverProjectSystem.ts
2016-06-14 15:21:51 -07:00
Wesley Wigham 4628e1a809 Add --types to pass an empty array to types to disable @types in Jakefile 2016-06-14 15:19:03 -07:00
Daniel Rosenwasser 82b385f331 Accepted baselines. 2016-06-14 15:15:42 -07:00
Yui 171ab06cf0 [Transforms] Merge master 06/14/2016 (#9169)
* 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

* 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)

* Update tests

* 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

* Salsa: get members of variables whose initialisers are functions

* Test adding members to JS variables whose initialisers are functions

* Recommend runtests-parallel in CONTRIBUTING

* Allow empty lists on command line

* Remove single-comma empty array form

* Remove trailing whitespace

* Implicit type inclusion changes

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

* Only inlineSourceMap when debugging through jake-browser

* Address PR: fix typo in opt's property

* minor fix: add missing return clause

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

* Baseline fix, CR comments, lint

* CR changes

* Add test for jsdoc in navigation bar

* Fixes runtests-parallel not reporting failure for failed tests.

* Fix decorator metadata emit for rest arg with no type

* Add isDefinition to ReferenceEntry

Clients can now easily tell if the reference is to a definition or a
usage.

* Test isDefinition

* Add option to bail out of `jake runtests` when one test fails

* Absolute-ify paths in both places

* Refactor

* Add unit test

* lint

* Added tests.

* Accepted baselines.

* Emit 'exports.' if the shorthand is a general export.

* Accepted baselines.

* Emit 'Promise' decorator metadata return type for async methods

* Respond to PR comment

* Unescape identifiers used in code completion

* Make isDefinition required.

For the deprecated getOccurrencesAtPosition, isDefinition is always false.

* Add more isDefinition tests and fix computed property bug

* Fix bug: do unescaping in the right place, so that it only affects escaped javascript identifiers

* Use `isLiteralComputedPropertyDeclarationName`
2016-06-14 15:00:40 -07:00
Wesley Wigham ffbdbf0768 Correct package.json indentation 2016-06-14 14:59:16 -07:00
Wesley Wigham dc14ce2eb2 Give Jakefile its ending newline back 2016-06-14 14:58:26 -07:00
Wesley Wigham f12d035a89 Fix typos in help text 2016-06-14 14:56:37 -07:00
Wesley Wigham 2634a6713e Merge branch 'master' into remove-jake 2016-06-14 14:52:02 -07:00
Wesley Wigham 2ff408fb95 Add local patch for gulp-typescript types 2016-06-14 14:51:30 -07:00
Wesley Wigham 684ce6e2d1 Add back in Jakefile for transitional period 2016-06-14 14:44:38 -07:00
Wesley Wigham 1defdc3847 Gulfile runs tests and compiles like a champ 2016-06-14 14:41:25 -07:00