Commit Graph
851 Commits
Author SHA1 Message Date
Sheetal Nandi 382b86bd2c Test update for using allowJs instead of --jsExtensions 2015-10-28 14:03:18 -07:00
Sheetal Nandi 57362f6017 Some tests to cover transpilation of different syntax 2015-10-28 13:08:35 -07:00
Sheetal Nandi 8f03d00dc0 Test cases to verify that declaration file is not emitted if any of the declaration file in program has error 2015-10-28 13:08:20 -07:00
Sheetal Nandi bf05ea3b2f Some test cases to verify that declaration file overwrite is reported correctly 2015-10-28 13:08:06 -07:00
Sheetal Nandi 93cc1e530b Check source map files are being overwritten 2015-10-28 13:07:35 -07:00
Sheetal Nandi d14934e4da Tests update for emitting declarations if no errors 2015-10-28 13:07:08 -07:00
Sheetal Nandi 0496bfe278 Merge branch 'master' into tscJsFiles 2015-10-19 12:32:51 -07:00
John Vilk f10c7cc154 Change ArrayBuffer.isView declaration to type guard for ArrayBufferView.
Also adds a test that checks that `ArrayBuffer.isView` appropriately narrows its argument to `ArrayBufferView`.

Fixes #5308.
2015-10-18 20:05:30 -04:00
Mohamed Hegazy e98a76fb62 Merge pull request #5257 from Microsoft/module-merge-with-constructors
Module merge with constructors
2015-10-16 16:55:57 -07:00
Mohamed Hegazy bb369f1423 Merge pull request #5290 from Microsoft/interfaceClassMergingFix
Do not report errors for classes and interfaces merging
2015-10-16 16:45:31 -07:00
Mohamed Hegazy 8b8d33d8b8 Fix comments 2015-10-16 16:29:11 -07:00
Nathan Shively-Sanders a8aa48e73f Merge pull request #5230 from Microsoft/ambient-class-merges-overloads-with-interface
Ambient class merges overloads with interface
2015-10-16 15:08:59 -07:00
Mohamed Hegazy 35a303ac01 Do not report errors for classes and interfaces merging 2015-10-16 10:54:35 -07:00
Sheetal Nandi acf7de7d34 Merge branch 'master' into tscJsFiles 2015-10-15 12:30:55 -07:00
Nathan Shively-Sanders 53188d9cb8 Add ES2015 as a synonym to ES6
In ModuleKind, ScriptTarget and associated command line arguments.
2015-10-15 11:35:52 -07:00
Sheetal Nandi 1ae1464764 Test cases for let declaration and its use order 2015-10-15 11:22:53 -07:00
Nathan Shively-Sanders c66bbd8cea Tests now correctly include a constructor 2015-10-14 12:43:56 -07:00
Nathan Shively-Sanders 12b7a998e9 Add test case 2015-10-14 12:23:37 -07:00
Vladimir Matveev 0465f1b0bb revert enum related changes 2015-10-13 13:18:58 -07:00
Vladimir Matveev 48b24343b1 use isBlockScopedNameDeclaredBeforeUse for block scoped variables and enums 2015-10-13 00:07:36 -07:00
Vladimir Matveev eb3b91cf1b addressed PR feedback 2015-10-12 17:24:39 -07:00
Vladimir Matveev f952873ef1 allow forward references to block scoped variables from functions 2015-10-12 16:18:37 -07:00
Sheetal Nandi 9f96f47a4f Added scenario when duplicate function implementation is reported 2015-10-12 14:47:22 -07:00
Sheetal Nandi d4d6e48ea5 Adding test case for scenario in which error reported depends on order of files 2015-10-12 14:39:10 -07:00
Nathan Shively-Sanders 3a55c849c7 Assert that ambient classes merge with interfaces
Specifically, overloads are recognised as having the same export/ambient
flags when merging the two.
2015-10-12 14:26:45 -07:00
Sheetal Nandi f28fbfd7c5 Merge branch 'master' into tscJsFiles 2015-10-12 12:51:24 -07:00
Sheetal Nandi 6882035dc0 Verify if one or more files are emitting into same output file we provide error 2015-10-12 12:50:35 -07:00
Sheetal Nandi a87dae15a9 Verify that when emit blocking error occurs rest of the emit occurs as expected 2015-10-12 12:44:21 -07:00
Sheetal Nandi 5e14edb4b7 Verify the emit file name is unique and doesnt overwrite input file
Fixes #4424
2015-10-12 12:25:13 -07:00
Vladimir Matveev 22e68de7ec Merge pull request #5216 from Microsoft/checkFunctionsInClassExpressions
check functions in class expressions
2015-10-12 11:09:21 -07:00
Vladimir Matveev ca98831674 addressed PR feedback: added tests for let declarations 2015-10-12 10:22:18 -07:00
Vladimir Matveev adf9f9b8df check initialization of exported block scoped variables 2015-10-12 09:59:41 -07:00
Vladimir Matveev a0683276d1 check functions in class expressions 2015-10-11 21:57:17 -07:00
Vladimir Matveev 1b5dc0d7d1 Merge pull request #5121 from Microsoft/shorthandPropsInDestructuring
parse/check/emit shorthand property assignment in destructuring
2015-10-10 22:39:05 -07:00
jbondc afa08181e2 Address code review.
Accept baselines.
2015-10-08 17:30:46 -04:00
jbondc 8960f523ea Resolve const enum value in index access. 2015-10-08 07:57:35 -04:00
Sheetal Nandi b580c5588e Merge branch 'master' into tscJsFiles 2015-10-05 16:42:37 -07:00
Vladimir Matveev a975895e4d parse/check/emit shorthand property assignment in destructuring 2015-10-05 14:39:57 -07:00
Anders Hejlsberg c7fdc0a6e5 Merge pull request #5099 from Microsoft/deferMemberInstantiation
Defer member instantiation
2015-10-05 12:46:49 -07:00
Wesley Wigham 28475c345d Change prologue emit location to inside module IIFEs 2015-10-05 11:22:16 -07:00
Anders Hejlsberg 139b5545a0 Adding tests 2015-10-03 18:08:45 -07:00
Nathan Shively-Sanders 04510ac157 Automatic semicolon insertion for class modifiers
This includes public, private, protected, abstract

async and declare already work this way, but it looks
like they didn't block the completion list, so I added
them to the list too.
2015-10-02 14:30:31 -07:00
Vladimir Matveev b4f326ab04 collect imports and exports in ambient external modules 2015-09-29 15:06:03 -07:00
Vladimir Matveev b866781609 Merge pull request #4946 from Microsoft/constInitializersInEnums
align behavior of constant expressions in initializers of ambient enu…
2015-09-24 21:49:35 -07:00
Anders Hejlsberg bcea3594a3 Merge pull request #4956 from Microsoft/bindingElementContextualTyping
Fix parameter destructuring issues
2015-09-24 15:55:37 -07:00
Anders Hejlsberg eb73565429 Adding tests 2015-09-24 13:52:19 -07:00
Wesley Wigham dd660dca39 Merge pull request #4811 from weswigham/es6-module-type
Support modules when targeting ES6 and an ES6 ModuleKind
2015-09-24 12:09:58 -07:00
Vladimir Matveev fa3d9f3997 align behavior of constant expressions in initializers of ambient enum members with spec 2015-09-23 21:30:27 -07:00
Sheetal Nandi e044d3e6b5 Merge branch 'master' into tscJsFiles 2015-09-22 12:36:36 -07:00
Vladimir Matveev c56b4165ec disambiguate: 'implements' starts heritage clause vs 'implements' is a class name 2015-09-21 22:22:25 -07:00