Commit Graph

32734 Commits

Author SHA1 Message Date
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
Daniel Rosenwasser
004cea8293 Merge pull request #1471 from Microsoft/preserveConstEnumsInServices
Preserve const enums in typescriptServices.js
2014-12-12 17:51:41 -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
Daniel Rosenwasser
2155b6dea8 Preserve const enums in typeScriptServices.js 2014-12-12 16:17:30 -08:00
Yui T
3903a65062 Move grammar check: InterfaceDeclaration, HeritageClause 2014-12-12 15:52:27 -08:00
CyrusNajmabadi
fbfb94f776 Merge pull request #1470 from Microsoft/flagAggregation
Make utility method names clearer.
2014-12-12 15:50:03 -08:00
Cyrus Najmabadi
ea3e509154 Make utility mehtod names clearer. 2014-12-12 15:29:52 -08:00
Cyrus Najmabadi
e259ee9f8f Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/utilities.ts
2014-12-12 15:15:37 -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
CyrusNajmabadi
7d2009ab64 Merge pull request #1469 from Microsoft/262baselines
Simplify 262 baselines.
2014-12-12 14:46:28 -08:00
CyrusNajmabadi
102cb2f406 Merge pull request #1468 from Microsoft/LKG
Update LKG.
2014-12-12 14:34:24 -08:00
Anders Hejlsberg
3e436c5047 Adding new tests 2014-12-12 14:34:12 -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
a163cb965c Merge branch 'master' into funcDeclsInBlocks 2014-12-12 14:18:28 -08:00
Cyrus Najmabadi
cf8afc3124 Update LKG. 2014-12-12 14:16:35 -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
Cyrus Najmabadi
f6aaa84146 In Fourslash: Compare ASTs for files produced incrementally versus files produced with a full parse. 2014-12-12 13:26:43 -08:00
Yui T
afc04c8db8 Move type checking: elementAccessExpression; there are still errors from not moving other grammar checking into type checker 2014-12-12 13:16:19 -08:00
Cyrus Najmabadi
0aa3f6e607 Rename some locals. 2014-12-12 13:09:50 -08:00
Yui T
90e1d4244f Move grammar check: deleteExpression 2014-12-12 12:59:00 -08:00
Yui T
00449d80a3 Merge disallow computed property grammar error; there are still errors from generator and the fact that other grammar check haven't moved yet 2014-12-12 12:47:19 -08:00
Cyrus Najmabadi
6ff58e3028 Don't emit error flags in the 262 baselines unless the node actually had an error.
This helps reduce clutter.
2014-12-12 12:41:59 -08:00
Cyrus Najmabadi
f8dd19ed1c Resurrect the post edit invariants checking for fourslash. 2014-12-12 12:01:27 -08:00
Vladimir Matveev
c24f75fd73 defer decision whether import used on the right side of import declaration should be considered referenced 2014-12-12 11:48:46 -08:00
Cyrus Najmabadi
a988283988 Merge branch 'master' into sourceFileUpdate 2014-12-12 11:44:10 -08:00
CyrusNajmabadi
7b528ddd2b Merge pull request #1464 from Microsoft/void0
Properly emit 'void 0' when emitting destructuring assignments.
2014-12-12 11:36:47 -08:00
Cyrus Najmabadi
83f0c91999 Properly emit 'void 0' when emitting destructuring assignments. 2014-12-12 11:28:05 -08:00
Anders Hejlsberg
86a9c80ff8 Adding tests and accepting new baselines 2014-12-12 10:56:22 -08:00
Anders Hejlsberg
a1533b695b Implied type of binding pattern with rest element is always an array type 2014-12-12 10:55:21 -08:00
Jason Freeman
8be44f111c Don't quote the word 'generators' in error messages
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
2014-12-12 10:41:21 -08:00
Jason Freeman
867e2a8b6f Disable computed properties in TypeScript 1.4
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
2014-12-12 10:35:01 -08:00
Yui T
04c9cbfbd4 Address code review 2014-12-12 10:13:47 -08:00
Mohamed Hegazy
90a9b3472a Merge pull request #1460 from Arnavion/compilefile-fail-task-on-error
Actually fail the surrounding jake task on errors in compileFile()
2014-12-12 09:02:09 -08:00
Vladimir Matveev
ed9234ed32 do not indent leading comments that attached to tokens with errors 2014-12-12 09:00:20 -08:00
Vladimir Matveev
6b438c22fd added test for inherited indentation 2014-12-12 08:59:47 -08:00
Vladimir Matveev
59a31acca1 conditionals are now introduce indentation scope 2014-12-12 08:59:26 -08:00
Arnavion
f6fd263cbd Actually fail the surrounding jake task on errors in compileFile() 2014-12-12 08:49:21 -08:00