Commit Graph

26317 Commits

Author SHA1 Message Date
Vladimir Matveev 87890af5b4 Merge pull request #4723 from Microsoft/inheritDiagnostics
inherit file processing diagnostics from the old program when reusing program structure
2015-09-10 12:06:43 -07:00
vilicvane c3323c9a69 Keep parentheses for all numeric literals with property access expression 2015-09-11 03:06:13 +08:00
Vladimir Matveev 5989d48267 addressed PR feedback 2015-09-10 12:05:23 -07:00
Vladimir Matveev ee56e60ca0 do not emit '=' in jsx attribute if initializer is missing 2015-09-10 11:39:06 -07:00
Vladimir Matveev 6a77400980 Merge pull request #4703 from Microsoft/jsxEmitAttribiteWithInitializer
do not emit '=' in jsx attribute if initializer is missing
2015-09-10 11:37:36 -07:00
Denis Nedelyaev 6a9bd1432c Simple fix for #4721
This makes relative outDir and other file path options not ignored when they point to the working directory.
No tests are failed.

Another way to fix this is to use `options.somePathOprtion !== undefined` check everywhere, but it would be a more complex change.
What do you think?
2015-09-10 21:16:16 +03:00
Sheetal Nandi 1dc3414007 Javascript files will emit declarations too so get declaration diagnostics 2015-09-10 11:01:33 -07:00
Vladimir Matveev 6e24570135 reattach file diagnostics for modified files when reusing program structure 2015-09-10 10:46:39 -07:00
Mohamed Hegazy 4be0ddba53 Merge pull request #4711 from SaschaNaz/mergeRules
Housekeeping formatting rules
2015-09-10 10:38:10 -07:00
Sheetal Nandi fad0db2a0b Report error if output file is among the input files 2015-09-10 09:44:14 -07:00
Sheetal Nandi e9688dd3fd Allow the js files to emit output 2015-09-10 09:44:09 -07:00
Sheetal Nandi 74a3f67250 Emit the diagnostics for javascript file instead of doing semantic check 2015-09-10 09:44:00 -07:00
Sheetal Nandi 0a67ac3b3b Add .js as supported extension 2015-09-10 09:43:55 -07:00
SaschaNaz 886e4d2259 rename isIndentationPrevented 2015-09-10 14:36:13 +09:00
Daniel Rosenwasser 96a815878c Merge pull request #4657 from Microsoft/emptyVariableDeclarationBindingPattern
Fix emitted code for variable statement with no bound variables
2015-09-09 16:47:45 -07:00
Anders Hejlsberg c05650aea3 Actually cache regular version of fresh object literal type 2015-09-09 16:38:04 -07:00
SaschaNaz b65cfe13da update isCompletedNode 2015-09-10 06:32:43 +09:00
Mohamed Hegazy a5c72014b0 Merge pull request #4656 from Microsoft/Fix4655
Report error for class expressions incorrectly extending abstract classes
2015-09-09 13:35:42 -07:00
SaschaNaz ad010ea8ee Add some comments to isIndentationPrevented 2015-09-10 02:31:27 +09:00
SaschaNaz eb2d86aa7b revert newlines 2015-09-10 02:20:15 +09:00
SaschaNaz feae0f711a Consider export/import specifier as binary op context 2015-09-10 02:18:26 +09:00
SaschaNaz 9ca46b8e0d Move housekeeping part to new PR #4711 2015-09-10 01:58:42 +09:00
SaschaNaz 8cd8f863b3 remove type operation rules, add types instead 2015-09-10 01:41:21 +09:00
SaschaNaz 44009fa951 Housekeeping part from #4609 2015-09-10 01:37:34 +09:00
SaschaNaz 8bf79a220a Resolving conflicts with #4646 2015-09-10 00:48:53 +09:00
Vladimir Matveev aa29644c2a allow to use keywords as jsx identifiers 2015-09-08 22:40:16 -07:00
Vladimir Matveev 83214150f8 do not emit '=' in jsx attribute if initializer is missing 2015-09-08 18:40:30 -07:00
Mohamed Hegazy 3d8c336a4f Merge pull request #4632 from Microsoft/fixCompletionAssert
Fix completion assert
2015-09-08 15:39:19 -07:00
Anders Hejlsberg 546da60a2a Correct propagation of includePatternInType flag 2015-09-06 08:54:38 -07:00
SaschaNaz 0fc9e7e313 simplified code flow 2015-09-06 16:02:38 +09:00
Anders Hejlsberg bb8179766a Check for excess properties 2015-09-05 15:42:58 -07:00
Anders Hejlsberg dc8ad6eb5e Store binding pattern in contextual type 2015-09-05 13:17:33 -07:00
SaschaNaz 40f3fcf575 remove hasBraceShell and add namedBindings check 2015-09-05 11:43:08 +09:00
progre 52c99634ff #4396 fix error message typo 2015-09-05 11:16:27 +09:00
Daniel Rosenwasser 4a85546f94 Merge pull request #4497 from weswigham/patch-4
Add system argument to readConfigFile
2015-09-04 18:10:46 -07:00
Daniel Rosenwasser 5297a7f319 Ensure that zero-element binding patterns don't try to reuse assigned identifiers. 2015-09-04 17:53:56 -07:00
Mohamed Hegazy d8c6f7edc3 fix additional places where class expression should be queried 2015-09-04 17:46:26 -07:00
Mohamed Hegazy 3a08af1450 Check for class expressions as well as class declarations 2015-09-04 17:45:57 -07:00
vilicvane 8d45711395 Else on the next line 2015-09-05 06:43:37 +08:00
Vladimir Matveev 97b846c444 handle jsx identifiers correctly, indent content of JsxSelfClosingElement 2015-09-04 13:03:47 -07:00
Vladimir Matveev 2d37a44df4 Merge pull request #4646 from Microsoft/formattingJsxAttributes
handle jsx identifiers correctly, indent content of JsxSelfClosingEle…
2015-09-04 12:59:13 -07:00
Daniel Rosenwasser 6c23a6b534 Merge pull request #4638 from SaschaNaz/fixCommentIndentation
Fix comment indentation
2015-09-04 12:15:30 -07:00
Sheetal Nandi 46c005749b Merge branch 'release-1.6' 2015-09-04 11:21:41 -07:00
Sheetal Nandi 0573c0b006 Merge pull request #4599 from Microsoft/decoratorInferredType
If Type annotation is missing, emit design:Type as Object
2015-09-04 11:19:17 -07:00
Vladimir Matveev 35d608692b handle jsx identifiers correctly, indent content of JsxSelfClosingElement 2015-09-04 10:53:33 -07:00
vilicvane 856f2d895c Fix issue #4603 2015-09-04 21:47:28 +08:00
SaschaNaz 4aded270f7 move declaration into the block 2015-09-04 21:54:14 +09:00
SaschaNaz 59f5ce4582 fix comment indentation 2015-09-04 19:35:07 +09:00
SaschaNaz 74ef1b25ac Merge https://github.com/Microsoft/TypeScript into formatTsxAttr 2015-09-04 12:25:29 +09:00
SaschaNaz c49c68d8f9 Manual merge 2015-09-04 12:22:15 +09:00