Commit Graph
1015 Commits
Author SHA1 Message Date
Ron Buckton f8e574f1d6 Added ArrayKind, moved createNode, changed JSDocParsing tests to use baselines. 2016-02-04 15:01:31 -08:00
Anders Hejlsberg 1154ab8def Merge pull request #6855 from Microsoft/destructuringInTypes
Destructuring parameters in function/constructor types
2016-02-03 09:05:24 -08:00
Anders Hejlsberg 98e8a25d1e Addressing CR feedback 2016-02-03 06:52:53 -08:00
Anders Hejlsberg c89f2b75ad Properly parse function/constructor types with destructuring parameters 2016-02-02 14:14:37 -08:00
Ryan Cavanaugh 2d7a2f4d30 Merge pull request #6680 from RyanCavanaugh/fix6646
Parse JSDoc comments for ES6 class constructors and methods
2016-02-02 10:48:29 -08:00
Anders Hejlsberg 4421c52b83 Remove parserContextFlags from Node type 2016-01-31 14:00:54 -08:00
Anders Hejlsberg f4ee49f24e Renaming parsing context flags to NodeFlags.xxxContext 2016-01-31 08:57:32 -08:00
Anders Hejlsberg 83859c0d91 Merge ParserContextFlags into NodeFlags 2016-01-31 08:45:14 -08:00
Anders Hejlsberg f0abb86158 Removing MultiLine, Synthetic, DeclarationFile, and OctalLiteral flags 2016-01-31 08:08:19 -08:00
Ryan Cavanaugh 2688dbd495 Merge pull request #6698 from RyanCavanaugh/fix6552
Recognize the RHS of assignments as the JSDoc target expression
2016-01-28 11:40:27 -08:00
Ryan Cavanaugh 364b08854b Recognize the RHS of assignments as the JSDoc target expression
Fixes #6552
2016-01-28 11:02:49 -08:00
Ryan Cavanaugh 1b282cda1d Parse JSDoc comments for ES6 class constructors and methods
Fixes #6646
2016-01-27 14:07:32 -08:00
Anders Hejlsberg 98603f9f49 Merge pull request #6532 from Microsoft/readonlyMembers
Readonly properties and index signatures
2016-01-27 10:50:26 -08:00
Ryan Cavanaugh 6febe3b503 Merge pull request #6562 from RyanCavanaugh/jsIsJsx
Treat .js as JSX
2016-01-25 16:15:52 -08:00
Ryan Cavanaugh c38021ffb8 Lint 2016-01-25 13:38:00 -08:00
Anders Hejlsberg c826a900bc Merge branch 'master' into readonlyMembers
Conflicts:
	src/compiler/types.ts
2016-01-24 15:21:03 -08:00
Ryan Cavanaugh 64c2d66ccb Merge branch 'master' into jsDocFinal 2016-01-22 15:10:02 -08:00
Ryan Cavanaugh 2653a8da46 Treat .js as JSX 2016-01-21 12:27:11 -08:00
Anders Hejlsberg a499607845 Merge branch 'master' into readonlyMembers
Conflicts:
	src/compiler/parser.ts
	src/compiler/types.ts
2016-01-18 21:03:15 -08:00
Anders Hejlsberg 07763ed1f8 Removing unused function 2016-01-17 07:24:51 -08:00
Vladimir Matveev a69dcd16fa Merge remote-tracking branch 'origin/master' into moduleAugmentations 2016-01-14 11:13:48 -08:00
Anders Hejlsberg b46efc9b55 Allow modifies on type members + introduce "readonly" modifier 2016-01-13 18:34:38 -08:00
Nathan Shively-Sanders 911d07a81b Merge pull request #5992 from Microsoft/allow-type-predicates-as-return-types-only
Allow type predicates as return types only
2016-01-13 09:55:40 -08:00
Nathan Shively-Sanders a9f2cb6d6e Make parseTypeOrTypePredicate terser. 2016-01-13 09:31:06 -08:00
vladima 7cef1efb4e merge with origin/master 2016-01-11 22:12:03 -08:00
Ryan Cavanaugh b1711e3633 scanJsIdentifier -> parseJSDocIdentifier 2016-01-07 17:33:46 -08:00
Ryan Cavanaugh 5eb1cc44f6 Merge remote-tracking branch 'upstream/master' into jsDoc2 2016-01-06 13:51:45 -08:00
Ryan Cavanaugh e223b2e53c Clean up unrelated changes 2016-01-06 12:47:26 -08:00
Ryan Cavanaugh 2c4856ae71 Issue correct errors for missing JSX closing tags
Fixes #6280
2015-12-29 16:00:15 -08:00
Vladimir Matveev 7f2ebf928a use 'declare global' to define augmentations for the global scope 2015-12-28 12:03:54 -08:00
Nathan Shively-Sanders 7882fd39e7 Merge branch 'master' into allow-type-predicates-as-return-types-only 2015-12-22 11:25:45 -08:00
Daniel Rosenwasser d7c5e18cb3 Removed unused declarations in 'parser.ts'. 2015-12-17 14:53:46 -08:00
Wesley Wigham b0bfa0f0dc Merge branch 'master' into this-type-guards 2015-12-08 17:48:33 -08:00
Ryan Cavanaugh 383cbf06c4 Merge pull request #5996 from RyanCavanaugh/fix5994
Disallow modifiers in object literal property assignment
2015-12-08 17:40:50 -08:00
Nathan Shively-Sanders f9846ff2bc Address comments 2015-12-08 14:11:46 -08:00
Nathan Shively-Sanders a4e21d7858 Address comments 2015-12-08 12:52:19 -08:00
Ryan Cavanaugh 92d7d1c953 Disallow modifiers in object literal property assignment
Fixes bug #5994
2015-12-08 10:11:29 -08:00
Ryan Cavanaugh 51c547428b Parse JSX attributes as AssignmentExpressions
We should issue an error when parsing `<div x={1, 2} />` as the comma operator is not a legal production in a JSX Expression

Fixes (mitigates?) bug #5991
2015-12-08 09:53:47 -08:00
Nathan Shively-Sanders fd311d4e27 Fix lint 2015-12-08 09:11:37 -08:00
Nathan Shively-Sanders af7df83825 Parse type predicates only in return types. 2015-12-08 08:57:10 -08:00
Daniel Rosenwasser 2ef436f082 Merge pull request #5559 from MartyIX/issue-4045
Improve error messages for property declarations
2015-12-07 01:12:05 -08:00
Vladimir Matveev e88dfb151a parse module specifier as string (old logic is kept for better error recovery) 2015-12-04 11:41:11 -08:00
Martin Všetička f15fe5b335 Improved error messages for property declarations 2015-12-04 09:20:49 +01:00
Wesley Wigham c4cff9833d first pass at this type predicates 2015-12-02 18:35:49 -08:00
Daniel Rosenwasser 4092de6993 Merge pull request #5736 from UBC-CPEN/issue-5173
Give more helpful error when trying to set default values on an interface.
2015-12-01 13:05:09 -08:00
Nathan Yee 144d24c2cb Change "object type literal" to "type literal" 2015-11-30 21:52:50 -08:00
Sheetal Nandi a87169829c Merge branch 'master' into sourceMapAndBreakpointDecorators 2015-11-30 14:14:06 -08:00
Vladimir Matveev 9552d4da44 ignore all trivia except singleline comments when processing tripleslash references 2015-11-29 21:17:31 -08:00
Nathan Yee e363c7582b Revert baseline changes to the objectTypeLiteralSyntax2 test 2015-11-28 17:24:34 -08:00
Nathan Yee 6c755c90db Report property errors in the checker instead of the parser 2015-11-27 18:11:28 -08:00