Commit Graph

2063 Commits

Author SHA1 Message Date
Vladimir Matveev
76dcfb660b Merge pull request #2291 from Microsoft/letConstInSwitchStatements
introduce CaseBlock as a block-scoped container for switch statements
2015-03-10 18:33:54 -07:00
Vladimir Matveev
59c71acae8 introduce emitCaseBlock function 2015-03-10 18:17:52 -07:00
Vladimir Matveev
efcf0e6f57 introduce CaseBlock as a block-scoped container for switch statements 2015-03-10 17:50:54 -07:00
Daniel Rosenwasser
aa08300cbf Merge pull request #2238 from caitp/issue-2090
Improve array destructuring error message
2015-03-10 16:13:19 -07:00
Caitlin Potter
0d06729b18 Move comment and refer to tuple type literal syntax rather than TupleType interface 2015-03-10 15:58:39 -04:00
Jason Freeman
07a893dee0 Merge pull request #2207 from Microsoft/for-ofES5
Emit 'for...of' statements in ES3/ES5
2015-03-10 12:13:16 -07:00
Mohamed Hegazy
3e4955bc0f Merge pull request #2270 from mihailik/patch-1
Fix for #2268 createDiagnosticCollection should be @internal
2015-03-10 11:57:08 -07:00
Jason Freeman
f389aefc47 Fix call to emitNode after merge with master 2015-03-10 10:41:26 -07:00
Caitlin Potter
7acb410251 Add note about use of isTupleType() 2015-03-10 13:37:25 -04:00
Caitlin Potter
c222b2bb3e Improve message for array destructuring error
Closes #2090
2015-03-10 13:33:58 -04:00
Jason Freeman
1349a196a0 Merge branch 'master' of https://github.com/Microsoft/TypeScript into for-ofES5 2015-03-09 19:45:37 -07:00
Jason Freeman
b15d8aa2b5 Address PR feedback 2015-03-09 19:45:14 -07:00
Cyrus Najmabadi
31cf443a28 Add specialized codepath for emitting without comments. 2015-03-09 15:47:23 -07:00
Cyrus Najmabadi
bfbc18d6d7 rename emitNode to emitNodeWithoutSourceMap 2015-03-09 15:01:02 -07:00
Cyrus Najmabadi
103bb34d7b Merge branch 'master' into indentSimplification
Conflicts:
	src/compiler/emitter.ts
2015-03-09 13:04:24 -07:00
Jason Freeman
a27fbff280 Merge branch 'master' of https://github.com/Microsoft/TypeScript into for-ofES5
Conflicts:
	tests/baselines/reference/parserES5ForOfStatement18.js
	tests/baselines/reference/parserES5ForOfStatement21.js
2015-03-09 11:17:31 -07:00
mihailik
dc451b0f69 Fix for #2268 createDiagnosticCollection should be @internal
DiagnosticsCollection interface is marked @internal in [src/compiler/types.ts](c6cd57d18c/src/compiler/types.ts (L1761)), so this should be @internal too.

Otherwise it causes compilation errors whenever the generated type definitions for LS is used.

See #2268 for more details.
2015-03-09 14:05:53 +00:00
Cyrus Najmabadi
35b56aa69b Further simplification. 2015-03-09 01:07:02 -07:00
Cyrus Najmabadi
6340531a16 Simplify indentation code in the emitter. 2015-03-08 23:07:03 -07:00
Cyrus Najmabadi
29c06f9d6a Move variable closer to where it is used. 2015-03-08 22:35:28 -07:00
Cyrus Najmabadi
4903ca0981 Merge branch 'master' into preserveFormatting
Conflicts:
	tests/baselines/reference/stringLiteralTypeIsSubtypeOfString.js
2015-03-08 19:47:34 -07:00
Cyrus Najmabadi
6e8d80f159 tests for newline preservation. 2015-03-08 19:26:33 -07:00
Cyrus Najmabadi
c371f1e521 Make the preservation of formatting an optional experimental compiler flag. 2015-03-08 19:06:55 -07:00
Bill Ticehurst
24141f05db Merge pull request #2245 from billti/ExportVersion
Made the 'version' string an exported property
2015-03-07 21:40:32 -08:00
Bill Ticehurst
a6816fc128 Added description to version exports 2015-03-07 20:12:16 -08:00
Cyrus Najmabadi
7570aaac65 Merge branch 'master' into returnStatus 2015-03-07 13:51:44 -08:00
Cyrus Najmabadi
21627384a8 Merge branch 'master' into propertyAccessEmit 2015-03-07 13:51:10 -08:00
Cyrus Najmabadi
2a990a8685 Preserve newlines for conditional expressions 2015-03-07 13:50:26 -08:00
Cyrus Najmabadi
dddc4660a1 Simplify code to emit indent code. 2015-03-07 13:33:02 -08:00
Cyrus Najmabadi
680e48f507 Preserve newlines on either side of a binary expression. 2015-03-07 12:54:12 -08:00
Cyrus Najmabadi
a18934d6da Address omitted return keyword. 2015-03-07 12:27:20 -08:00
Cyrus Najmabadi
bdcdd84dda CR feedback. 2015-03-07 02:08:36 -08:00
Cyrus Najmabadi
0c5654164f Fix up comment. 2015-03-07 01:33:18 -08:00
Cyrus Najmabadi
c76f71cfae When emitting an arrow function, parenthesize the body if it could be interpreted as a block instead of an object literal. 2015-03-07 01:30:45 -08:00
Cyrus Najmabadi
7f00378eef CR feedback. 2015-03-06 18:51:58 -08:00
Cyrus Najmabadi
a76eb69996 Add an 'isVariableLike' helper function. 2015-03-06 18:45:45 -08:00
Anders Hejlsberg
5c56684187 Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
2015-03-06 17:20:44 -08:00
Bill Ticehurst
da5caf5f72 Made the 'version' string an exported property 2015-03-06 17:09:55 -08:00
Mohamed Hegazy
59c3a7d71e Merge pull request #2235 from DickvdBrink/letConstInCatchclause
Let const in catchclause
2015-03-06 15:21:11 -08:00
Bill Ticehurst
0ea31c37b5 Merge pull request #2222 from billti/tsconfigWatchFix
Fix watch to honor tsconfig.json setting
2015-03-06 14:44:44 -08:00
unknown
129ef7222c Use hasProperty instead 2015-03-06 22:56:59 +01:00
unknown
b4d723217e Error on redeclaring a variable with let/const already defined as catch parameter 2015-03-06 21:42:42 +01:00
unknown
5ca703eeb4 Add new diagnostics message for let/const declarations in a catch clause 2015-03-06 20:53:15 +01:00
Bill Ticehurst
ee912ee1cd Fix path normalization for patterns such as './/tsconfig.json' 2015-03-05 23:53:16 -08:00
Bill Ticehurst
02eb7466a7 Fix watch to honor tsconfig.json setting 2015-03-05 23:32:54 -08:00
Jason Freeman
fecd20a3db Fix sourcemaps for 'for...of' and no source maps for synthesized nodes 2015-03-05 11:47:40 -08:00
Cyrus Najmabadi
62d304b069 Preserve newlines for property access expressions on multiple lines. 2015-03-05 02:31:55 -08:00
Jason Freeman
ed3ab96eed Add tests for destructuring 'for...of' 2015-03-04 19:35:13 -08:00
Jason Freeman
905f35091f Do not create a temp for RHS if it's an identifier 2015-03-04 19:35:10 -08:00
Jason Freeman
4bb0587dd4 Fix createTempVariable to always record the name in the currentScopeNames 2015-03-04 19:35:06 -08:00