Commit graph

2867 commits

Author SHA1 Message Date
Sheetal Nandi
4c842591f7 Merge branch 'master' into jsFileCompilation 2015-11-06 12:39:42 -08:00
Anders Hejlsberg
9b4956fa11 Merge pull request #5459 from Microsoft/partialSignatureMatching
Fix union type partial signature matching
2015-11-05 16:46:52 -08:00
Vladimir Matveev
652a3a4a55 do not report 'unreachable code' on empty statements 2015-11-03 22:30:27 -08:00
Vladimir Matveev
fb15e9c7c0 Merge pull request #4788 from Microsoft/reachabilityChecks
initial revision of reachability checks
2015-11-02 14:55:19 -08:00
Mohamed Hegazy
3e631449a1 Merge pull request #5450 from sarod/allow-comments-tsconfig
Allow comments in tsconfig.json
2015-11-02 11:46:44 -08:00
Yui
f503169f8c Merge pull request #5472 from MartyIX/issue-5183
Fix copyright comments are not preserved when generating d.ts files
2015-11-02 11:21:47 -08:00
Nathan Shively-Sanders
cc64210519 Merge pull request #5474 from Microsoft/forbid-this-as-constructor-parameter-type
Forbid this as constructor parameter type
2015-11-02 11:04:36 -08:00
Nathan Shively-Sanders
67b9647069 Add a variable of type this in constructor body
The test already had a reference to the `this` value, but that doesn't
show that the *type* is allowed.
2015-11-02 10:47:56 -08:00
Martin Vseticka
1703972dd2 Preserve copyright comments when generating d.ts files 2015-11-02 17:07:16 +01:00
Sébastien Arod
638e4b758a Use regex for repacing comments content.
Use space for indents
2015-11-01 15:31:16 +01:00
Sébastien Arod
00b389d477 New commit using TS scanner.
This commit uses TS scanner and replaces comments token text
by whitespaces to preserve orginal positions.
2015-10-31 23:17:46 +01:00
Daniel Rosenwasser
982926a4c4 Moved test. 2015-10-30 16:59:31 -07:00
Daniel Rosenwasser
c3c9e513a8 Added failing test. 2015-10-30 15:30:32 -07:00
Nathan Shively-Sanders
e609047b78 Add tests based on #5449 2015-10-30 14:02:07 -07:00
Sheetal Nandi
94a647b72b Do not emit declarations for javascript files 2015-10-30 11:36:39 -07:00
Sheetal Nandi
b217b8b620 Merge branch 'master' into jsFileCompilation 2015-10-30 09:34:32 -07:00
Anders Hejlsberg
a27ed01516 Adding test 2015-10-29 14:53:28 -07:00
Vladimir Matveev
3f11c0b2de merge with master 2015-10-29 09:33:27 -07:00
Sébastien Arod
f5e73ab8bf Fix handling of escaped characters in string 2015-10-29 14:55:23 +01:00
Sébastien Arod
b60d88fa80 Allow comments in tsconfig.json issue #4987 2015-10-29 12:56:13 +01:00
Sheetal Nandi
38ebb1d835 Tests update after declaration file emit revert 2015-10-28 16:59:52 -07:00
Sheetal Nandi
0c3c7f1a1b Treat the .jsx and .tsx files as jsx when parsing and .js files are parsed in standard mode 2015-10-28 16:39:22 -07:00
Sheetal Nandi
2d3a345fd3 Since there arent any user given extensions, have extensions start with "." like before 2015-10-28 16:24:53 -07:00
Sheetal Nandi
45b995d030 Remove extensions doesnt need to depend on compiler options any more 2015-10-28 15:45:00 -07:00
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
ff933be5ff Populate if emit was skipped correctly as part of emit result 2015-10-28 13:07:50 -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
Martin Všetička
1e2108854b Add warning message empty THEN clause 2015-10-28 08:25:41 +01:00
Vladimir Matveev
e811fecda6 Merge pull request #5275 from Microsoft/fixCasingAndPathFormat
use absolute path as key to store files, correctly handle scenarios w…
2015-10-27 14:02:35 -07:00
Vladimir Matveev
f5d4aa7d9c addressed PR feedback (change command line flag description), added tests 2015-10-27 13:27:51 -07:00
Vladimir Matveev
d2a11b55dc merge with master 2015-10-27 10:41:21 -07:00
Vladimir Matveev
ea054f7cbb Merge pull request #5412 from Microsoft/classesInLoop
treat local classes as block scoped variables
2015-10-27 10:23:16 -07:00
Mohamed Hegazy
33d7a1fc13 Merge pull request #5397 from seanchas116/fix-nested-parameter-destructuring
Fix nested parameter destructuring
2015-10-27 09:46:23 -07:00
Vladimir Matveev
654befa781 treat local classes as block scoped variables 2015-10-26 22:18:04 -07:00
Ryohei Ikegami
a3f09c343b Add compiler test 2015-10-27 11:50:43 +09:00
Vladimir Matveev
4dbd04cdeb Merge pull request #5208 from Microsoft/capturedBlockScopedVars
support block scoped vars captured in closures inside loops
2015-10-26 16:58:15 -07:00
Mohamed Hegazy
ed5dc5536d Merge pull request #5390 from maybejulian/declareOnTypeAliasInDts
Allow type aliases to omit 'declare' keyword in '.d.ts' files
2015-10-25 23:26:18 -07:00
Ryohei Ikegami
f7f9bd1d24 Add tests for nested destructuring 2015-10-25 13:13:38 +09:00
Nathan Shively-Sanders
c4e54685c6 Merge pull request #5384 from Microsoft/fix-union-of-variadic-functions
Fix union of variadic functions
2015-10-23 14:54:13 -07:00
Nathan Shively-Sanders
d26a4c8a87 Merge pull request #5359 from Microsoft/merge-inherits-interface-members
Merge inherits interface members
2015-10-23 14:51:13 -07:00
Nathan Shively-Sanders
7a1004371b Add tests and accept baselines 2015-10-23 13:33:55 -07:00
Julian Williams
fc2dca2344 Added test. 2015-10-22 18:18:57 -04:00
Nathan Shively-Sanders
1651f1809c Improve mergedInheritedClassInterface test case
Covers the case when the merged interface extends an interface, but the
merged class does not extend a class, then trying to extend that class.
2015-10-22 11:32:26 -07:00
Vladimir Matveev
f96980d388 merge with master 2015-10-21 17:13:20 -07:00
Nathan Shively-Sanders
4d05189d8d Improve naming of test members 2015-10-21 16:23:59 -07:00
Nathan Shively-Sanders
36ddd022a1 Tests for interfaces merged w/classes
Both interfaces and classes have base classes/interfaces; all members are
available on an instance of the merged child.
2015-10-21 16:10:46 -07:00