Commit Graph
12444 Commits
Author SHA1 Message Date
Yui T 60eb37df94 Move grammar checking: declare keyword in checkGrammarModifier; there are still erros from incomplete grammar migration 2014-12-15 14:51:52 -08:00
Yui T d584737ea2 Address code review 2014-12-15 14:47:09 -08:00
Cyrus Najmabadi cb8d2f28ae Simplify how we set container.nextContainer now that we don't double recurse. 2014-12-15 14:43:31 -08:00
Yui T e49470bf86 Address code review 2014-12-15 14:16:11 -08:00
Daniel Rosenwasser e43e5c3cde Removed unnecessary case; substitution expressions only occur in TemplateSpans. 2014-12-15 14:13:31 -08:00
Daniel Rosenwasser b65a422c7a Fixed contextual typing for tagged template expressions. 2014-12-15 14:11:21 -08:00
Cyrus Najmabadi d3bfed13f8 Simplify the binder so it does not need to double recurse down constructor parameter nodes. 2014-12-15 13:23:06 -08:00
Yui T aa59b4d3f1 Move grammar checking: yieldExpression; there are still error from incomplete grammar migration. 2014-12-15 10:47:42 -08:00
Yui T 896f172d72 Move grammar checking: wihtStatement; there are still errors from incomplete grammar migration 2014-12-15 10:15:46 -08:00
Yui T 5d91394713 Movev grammar checking: typeReference; there are still errors from incomplet grammar migration 2014-12-15 10:15:12 -08:00
Cyrus Najmabadi 59c901556b Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/harness/fourslash.ts
2014-12-15 00:46:48 -08:00
Cyrus Najmabadi 1bfe500897 Formatting. 2014-12-14 23:22:19 -08:00
Yui T 98cb805f13 Move grammar check: throwStatement; there are still errors from incomplete grammar migration 2014-12-14 22:50:58 -08:00
Cyrus Najmabadi 0ec9f0d3bb Check tree invariants during fourslash tests. 2014-12-14 22:43:26 -08:00
Yui T b388eb3c2a Move grammar checking: taggedTemplateExpression 2014-12-14 21:12:14 -08:00
Yui T a4f17b1417 Move grammar checking: switchStatement; there are still errors from incomplete grammar migration 2014-12-14 19:57:12 -08:00
Yui T 1cc0d184bb Move grammar checking: shorthandPropertyAssignment; Add more parser test; there are still errors from incomplete migration 2014-12-14 19:14:02 -08:00
Yui T eadcc06fa3 Move grammar checking: returnStatement; there are still error from incomplet grammar migration 2014-12-14 15:18:54 -08:00
Cyrus Najmabadi bd76ebd02b Enable incremental parsing by default.
Provide flag to disable incremental parsing if necessary.
2014-12-14 12:39:11 -08:00
Cyrus Najmabadi e1e5243335 Merge branch 'typingHighFidelity' into sourceFileUpdate
Conflicts:
	tests/cases/unittests/incrementalParser.ts
2014-12-14 12:06:26 -08:00
Cyrus Najmabadi 2bb0eb604b Ensure the 'hasParseErrors' bit is the same between trees. 2014-12-14 12:04:18 -08:00
Cyrus Najmabadi 0e01e48d0e Always run all fourslash tests in high fidelity typing mode.
We want to verify after every edit that our incremental data is correct.
2014-12-14 11:34:15 -08:00
Yui T e852f3379c Move grammar checking: prefixUnaryExpression; There are still error from incomplete migration 2014-12-14 11:29:54 -08:00
Cyrus Najmabadi 6d9bfda3e5 Check post edit invariants after every edit. 2014-12-14 11:20:50 -08:00
Cyrus Najmabadi bd4aed25da Don't convert the tree to JSON before checking it. Just check it directly. 2014-12-14 11:16:50 -08:00
Yui T 94d4ac28f9 Move grammar checking: postfixUnaryExpression 2014-12-14 11:12:45 -08:00
Cyrus Najmabadi f5d622f0c9 Move test helpers into the harness Utils module. 2014-12-14 10:57:34 -08:00
Anders Hejlsberg b878a27113 Support -target ES6 emit for destructuring, spread, and rest. 2014-12-14 09:43:14 -08:00
Yui T fe92b5e736 Move grammar checking: parameter; there are still errors from incomplete grammar migration 2014-12-13 20:57:38 -08:00
Yui T 747eb7268d Move garmmar checking: numericLiteral; there are still error from incomplete migration 2014-12-13 14:08:27 -08:00
Yui T 2cf51e4639 Move grammar checking: objectLiteralExpression; there are still error from incomplete grammar migration 2014-12-13 13:55:16 -08:00
Jason Freeman b552613fb5 Switch parsePrimaryExpression to if-else style 2014-12-12 18:39:31 -08:00
Yui T c5b9c07542 Move grammar checking: propertyAssignment; there are still errors from incomplete grammar migration 2014-12-12 17:00:35 -08:00
Yui T ee1f19efca Move grammar checking: labelStatement 2014-12-12 16:27:43 -08:00
Yui T 3903a65062 Move grammar check: InterfaceDeclaration, HeritageClause 2014-12-12 15:52:27 -08:00
Cyrus Najmabadi ea3e509154 Make utility mehtod names clearer. 2014-12-12 15:29:52 -08:00
Yui T 5b98eba3d8 Address code review; check class heritage clause into its own function 2014-12-12 15:10:35 -08:00
Yui T 56cf566f89 Move grammar checking: functionExpression 2014-12-12 15:10:01 -08:00
Cyrus Najmabadi c5b87e9070 Merge branch 'master' into sourceFileUpdate 2014-12-12 15:06:45 -08:00
Cyrus Najmabadi b38b5fd1b5 Merge branch 'master' into funcDeclsInBlocks 2014-12-12 14:57:34 -08:00
Anders Hejlsberg b416cbc599 Merge branch 'master' into spreadAndRest
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
2014-12-12 14:32:53 -08:00
Cyrus Najmabadi 9f59cf6e19 Simplify 262 baselines. 2014-12-12 14:26:31 -08:00
Cyrus Najmabadi 760eb9b8e0 Merge branch 'master' into sourceFileUpdate
Conflicts:
	src/compiler/parser.ts
	src/compiler/types.ts
	src/compiler/utilities.ts
2014-12-12 14:12:27 -08:00
Cyrus Najmabadi ffdddd53af Merge branch 'master' into funcDeclsInBlocks
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
2014-12-12 14:05:09 -08:00
Yui T ae4b5dc842 Move grammar checking: externalModuleReferences; there are still errors from incomplete grammar checking migration 2014-12-12 14:02:32 -08:00
CyrusNajmabadi dacbd982cf Merge pull request #1467 from Microsoft/postEditInvariants
Resurrect the post edit invariants checking for fourslash.
2014-12-12 13:52:19 -08:00
CyrusNajmabadi 126aaf949d Merge pull request #1465 from Microsoft/labeledStatement
Avoid lookahead when parsing a statement.
2014-12-12 13:45:06 -08:00
Cyrus Najmabadi 183c80a81a Merge branch 'master' into postEditInvariants
Conflicts:
	src/harness/test262Runner.ts
2014-12-12 13:42:39 -08:00
Cyrus Najmabadi 26badc686f Avoid lookahead when parsing a statement.
If a statement started with an identifier, then we'd normally lookahead to see if the next token
was a colon.  Lookahead is expensive (as it has to rescan tokens).  Instead, we do the same thing
we do for arrow-functions.  We just parse out the identifier, and afterwards we check if there is
a colon as the current token.  Now, no lookahead is required.
2014-12-12 13:32:54 -08:00
Yui T 49bc20a05f Move grammar checking: exportAssignment; there are still errors from incomplete grammar migration 2014-12-12 13:32:01 -08:00