Commit Graph

18857 Commits

Author SHA1 Message Date
Nathan Shively-Sanders 97ef839a03 Protected ctors are accessible in subclass static methods
Previously, it was an error to refer to a protected constructor from a
base class, even in a static method where the semantics work. Now it is
not an error in static methods.
2016-07-22 13:48:43 -07:00
Richard Knoll 8b2ea398ff Merge pull request #9528 from Microsoft/explicitly_included_globs
Add support for including dotted and .min.js files explicitly in include
2016-07-22 13:43:32 -07:00
Nathan Shively-Sanders 25525607d5 Test that protected constructors are accessible
in static methods of subclasses
2016-07-22 13:38:45 -07:00
Andy Hanson b58f4dd928 Respond to PR comments 2016-07-22 13:37:25 -07:00
Andy Hanson bc5c7b654a More tests 2016-07-22 13:33:22 -07:00
Andy 046e9ea076 Merge pull request #9895 from Microsoft/better_web_test
Improve web tests
2016-07-22 13:11:43 -07:00
Richard Knoll bd48e55878 Merge remote-tracking branch 'origin/master' into explicitly_included_globs 2016-07-22 12:04:50 -07:00
Yui bd6d2c0251 [Release-2.0] Fix 9829 : do not report error using import, export, module augmentation in d.t.s (#9894)
* Only error in non-declaration file

* Add tests and baselines

* Addess PR: get the first non-ambient external module file

* Rename test file and update baseline

* Add tests and baselines

* Update baselines
2016-07-22 10:16:00 -07:00
Andy Hanson aded015c38 Clarify code checking for UMD exports and eagerly return undefined rather than continuing on to the for loop. 2016-07-22 08:43:34 -07:00
Andy Hanson f94025d855 Improve web tests
* Provide a favicon so chrome doesn't block waiting for one
* Provide accurate content type so chrome doesn't warn
2016-07-22 08:07:29 -07:00
Nathan Shively-Sanders da212960b1 Use originalKeywordKind to detect this parameters 2016-07-22 07:53:22 -07:00
Nathan Shively-Sanders 97e4578b74 Test that emitter skips this with rest parameter
Also test that it's skipped when emitting decorator metadata
2016-07-22 07:52:54 -07:00
Nathan Shively-Sanders 5768b42bfa Skip this in emitter in 2 more places 2016-07-22 07:52:31 -07:00
Yui bd25c130ca Port PR 9745 to master (#9881)
* Add completion for quote property name in object literal expression

* Add fourslash tests for completion of quoted property in object literal expression

* Handle object-literal expression as an argument

Undo wip

Undo wip

Conflicts:
	src/services/services.ts

* Add tests and baseline for object literal expression for arguments
2016-07-22 07:15:12 -07:00
Andy Hanson 95e391ec72 Allow await in a simple unary expression 2016-07-22 06:00:37 -07:00
Yui 14aa1323f5 [Release-2.0] Fix 9632 Auto-completion for quoted property in object literal expression (#9745)
* wip

* Add completion for quote property name in object literal expression

* Add fourslash tests for completion of quoted property in object literal expression

* Handle object-literal expression as an argument

* Add tests and baseline for object literal expression for arguments

* Undo wip

* Undo wip
2016-07-21 21:02:49 -07:00
Ron Buckton ffc554111f Merge pull request #9852 from Microsoft/transforms-visitPerf
[Transforms] Address visitor performance.
2016-07-21 17:49:44 -07:00
Daniel Rosenwasser 253253db5a Merge pull request #9855 from Microsoft/tsaImmutableTo-2.0
Port TemplateStringsArray immutability to release-2.0
2016-07-21 14:37:15 -07:00
Vladimir Matveev 2c254773bb added tests 2016-07-21 14:17:22 -07:00
Andy Hanson a8c05a98e9 Add specific error message for unwanted '.ts' extension 2016-07-21 13:42:49 -07:00
Andy Hanson 448a480aa8 Don't allow .ts to appear in an import 2016-07-21 13:42:49 -07:00
Sudheesh Singanamalla f24341f719 Remove dependency on tsd, Related to #9658 (#9724) 2016-07-21 12:25:21 -07:00
Vladimir Matveev 7da455c390 read ScriptKind\HasMixedContent when opening external project 2016-07-21 11:40:03 -07:00
Vladimir Matveev e091f6702e introduce ExternalFile interface 2016-07-21 11:27:29 -07:00
Vladimir Matveev c0f4fdd489 merge with origin/master 2016-07-21 10:38:15 -07:00
Anders Hejlsberg 451f48bf82 Optimize checkTypeRelatedTo, part 2 2016-07-21 09:57:46 -07:00
Ron Buckton 561104f9c8 Remove custom source map emit for modules. 2016-07-21 09:53:36 -07:00
Nathan Shively-Sanders 57eac1b1e5 Merge pull request #9692 from Microsoft/fix-emit-with-this-and-rest-parameters
Fix emit with this and rest parameters
2016-07-21 08:31:29 -07:00
Daniel Rosenwasser a2f45e9599 Merge pull request #9853 from HerringtonDarkholme/master
Fix #9843. IScriptSnapshot can return undefined
2016-07-20 22:22:35 -07:00
Daniel Rosenwasser 6e4dd752a1 Merge pull request #9561 from Microsoft/tsaImmutable
Make TemplateStringsArray immutable.
2016-07-20 22:20:26 -07:00
Herrington Darkholme 1b07fbb222 Fix #9843. IScriptSnapshot can return undefined 2016-07-21 10:01:12 +08:00
Ron Buckton 5769398abf Changed specialized emit for IdentifierName 2016-07-20 18:43:41 -07:00
Ron Buckton 0a0cacf472 Remove specialized source map emit for rest parameters 2016-07-20 18:23:01 -07:00
Daniel Rosenwasser 6968ebf84e Accepted baselines. 2016-07-20 18:07:45 -07:00
Daniel Rosenwasser 3470ef5cbc Fixed up tests that used 'string[]' instead of 'TemplateStringsArray'. 2016-07-20 18:00:17 -07:00
Daniel Rosenwasser 1ef7375834 Make TemplateStringsArray completely immutable. 2016-07-20 18:00:04 -07:00
Ron Buckton b087526b8c Fix several test failures. 2016-07-20 17:55:55 -07:00
Ron Buckton d119167653 Add more commonly used nodes, reduce less frequently used nodes. 2016-07-20 17:36:18 -07:00
Daniel Rosenwasser 82de93236e Merge branch 'master' into tsaImmutable 2016-07-20 17:29:38 -07:00
Wesley Wigham 729464dc23 Integrate feedback from @mihailik to performance framework (#9845)
* Integrate feedback from @mihailik

* Rons feedback, explicitly include in new tsconfigs
2016-07-20 15:42:29 -07:00
Ron Buckton ec9c4d26f9 Merge branch 'transforms' into transforms-visitPerf 2016-07-20 12:19:56 -07:00
Ron Buckton d4ad7f31f9 Merge pull request #9175 from Microsoft/transforms-generators
[Transforms] Down-level transformations for Async Functions
2016-07-20 12:12:47 -07:00
Ron Buckton 248953ec59 Explicit handling for more nodes in reduceEachChild/visitEachChild 2016-07-20 12:12:07 -07:00
Anders Hejlsberg f5f8a4554a Optimize checkTypeRelatedTo 2016-07-20 11:15:01 -07:00
Yui 80db0f2f16 [Release-2.0] Fix 9782: do not report blocked-scope-used-before-declaration error in ambient context (#9789) (#9830)
* Do not report block-scoped-used-before-declaration in ambient context

* Add tests and baselines
2016-07-19 15:16:27 -07:00
Wesley Wigham 2a26beb9d8 Add performance framework from transforms branch (#9536)
* Port performance tools from transforms branch

* Use friendlier names, add compiler option to print all recorded measures

* Always print total time

* + -> .getTime
2016-07-19 15:10:29 -07:00
Yui 3721a2d799 [Release-2.0] Fix 9782: do not report blocked-scope-used-before-declaration error in ambient context (#9789)
* Do not report block-scoped-used-before-declaration in ambient context

* Add tests and baselines
2016-07-19 10:53:04 -07:00
Vladimir Matveev 9cd5b46100 strip quotes from the log file name 2016-07-19 10:07:49 -07:00
Anders Hejlsberg 1868f2ec83 Remove bizarre fourslash test 2016-07-19 07:18:55 -07:00
Anders Hejlsberg a2c4176ea8 Fix fourslash test 2016-07-19 07:18:35 -07:00