Cyrus Najmabadi
cd308e78ba
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/parser.ts
tests/baselines/reference/FunctionDeclaration5_es6.errors.txt
tests/baselines/reference/VariableDeclaration2_es6.errors.txt
tests/baselines/reference/VariableDeclaration4_es6.errors.txt
tests/baselines/reference/anonymousModules.errors.txt
tests/baselines/reference/callSignaturesWithParameterInitializers2.errors.txt
tests/baselines/reference/conflictMarkerTrivia1.errors.txt
tests/baselines/reference/dottedModuleName.errors.txt
tests/baselines/reference/innerModExport1.errors.txt
tests/baselines/reference/innerModExport2.errors.txt
tests/baselines/reference/parserAccessors10.errors.txt
tests/baselines/reference/parserComputedPropertyName5.errors.txt
tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt
tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt
tests/baselines/reference/parserModifierOnStatementInBlock2.errors.txt
tests/baselines/reference/parserSkippedTokens16.errors.txt
tests/baselines/reference/privateIndexer2.errors.txt
2014-12-16 21:50:10 -08:00
Cyrus Najmabadi
99a189936f
Remove last vestiges of the grammar checker from the parser now that it has been entirely moved to the TypeChecker.
2014-12-16 19:59:16 -08:00
Yui T
fdfd8d4863
Cleaning up migrating grammar checking
2014-12-16 19:11:07 -08:00
Cyrus Najmabadi
9df59c39ee
Change TextChangeRange to be a record type as well.
2014-12-16 18:40:15 -08:00
Cyrus Najmabadi
7f3a73b7c8
Change 'TextSpan' to be a simple record type with free floating functions.
2014-12-16 18:31:06 -08:00
Yui T
9ab59a4964
Merge branch 'master' into refactorGrammarCheck
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/parser.ts
src/compiler/types.ts
tests/baselines/reference/YieldExpression8_es6.errors.txt
tests/baselines/reference/ambientErrors.errors.txt
tests/baselines/reference/giant.errors.txt
2014-12-16 17:38:40 -08:00
Yui T
8dc9f751a3
Complete grammar checking migration; there are still errors which will be fixed once pull master into the branch
2014-12-16 17:32:15 -08:00
Cyrus Najmabadi
dfb1ac0f00
Use constant in another place.
2014-12-16 17:14:45 -08:00
Mohamed Hegazy
cd7fc0c3fe
Merge pull request #1495 from Microsoft/crashWhileReportingError
...
Do not use the file name in errors unless it exists
2014-12-16 16:56:01 -08:00
Cyrus Najmabadi
535f9d8972
Rename method to be clearer, and add comments to explain the semantics.
2014-12-16 16:36:49 -08:00
Cyrus Najmabadi
f3ce5d763c
CR feedback.
2014-12-16 16:27:14 -08:00
Cyrus Najmabadi
97a6abcc07
CR feedback.
2014-12-16 16:12:14 -08:00
Yui T
a3e8b6c6d7
Move grammar checking: interfaceDeclaration-remove it from checkModifiers in parser; there are still errors from incomplete grammar migration
2014-12-16 13:47:57 -08:00
Yui T
406576f1fc
Move grammar checking: propertyDeclaration, propertySignature; there are still errors from incomplete grammar migration
2014-12-16 13:36:00 -08:00
Yui T
c525877aaa
Move grammar checking: moduleDeclaration; there are still errors from incomplete grammar migration
2014-12-16 13:35:31 -08:00
Yui T
003515655e
Move grammar checking: methodDeclaration; there are still erros from incomplete grammar migration
2014-12-16 12:51:42 -08:00
Yui T
7a4d8cd8ee
Move grammar checking: setAccessor, getAccessor; there are still erros from incomplete grammar migration
2014-12-16 12:25:05 -08:00
Cyrus Najmabadi
0a8744e841
Add helper method to reduce so many double negatives in the code.
2014-12-16 03:19:13 -08:00
Cyrus Najmabadi
8917e96663
Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
...
Conflicts:
src/compiler/parser.ts
src/compiler/utilities.ts
2014-12-16 03:12:31 -08:00
Cyrus Najmabadi
6326b9d51f
Merge branch 'master' into sourceFileUpdate
2014-12-16 02:59:05 -08:00
Cyrus Najmabadi
c7bb0a5ae6
Don't store variable statement flags on its variable declaration children.
2014-12-16 02:50:38 -08:00
Yui T
694771b2d7
Move grammar checking: functionDeclaration; there are still errors from incomplet grammar migration
2014-12-15 23:05:29 -08:00
Cyrus Najmabadi
e8a1056a38
Merge branch 'bindingElementContxt' into funcDeclsInBlocks
2014-12-15 21:48:35 -08:00
Cyrus Najmabadi
30f9a5ca2a
Do not pass context flags downward while parsing binding elements.
...
This prevents an unnecessary allocation, simplifies parsing code, and prevents
an issue where parsing depends on context flags not stored in the final tree.
This is an issue for incremental parsing that can lead to nodes being reused
inappropriately.
2014-12-15 21:41:02 -08:00
Yui T
25a6302b48
Move grammar checking: forStatement
2014-12-15 18:39:44 -08:00
Yui T
010745c371
Move grammar checking: forInStatement; there are still errors from incomplete migration
2014-12-15 18:28:24 -08:00
Yui T
e0e88adfc5
Move grammar checking: variableDeclaration, variableStatements; there are still erros from incomplete grammar migration
2014-12-15 18:10:35 -08:00
Mohamed Hegazy
8a87d51956
Do not use the file name in errors unless it exists
2014-12-15 17:32:11 -08:00
Yui T
f22adf6785
Move grammar checking: constructorDeclaration; there are still errors from incomplete grammar migration
2014-12-15 16:42:31 -08:00
Yui T
bcf73a8207
Move grammar checking: enumDeclaration; there are still erros from incomplete grammar migration
2014-12-15 15:26:08 -08:00
Yui T
28a115ef37
Move grammar checking: breakStatement, continueStatement; there are still errors from incomplete grammar migration
2014-12-15 15:05:31 -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
Yui T
98cb805f13
Move grammar check: throwStatement; there are still errors from incomplete grammar migration
2014-12-14 22:50:58 -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
Yui T
e852f3379c
Move grammar checking: prefixUnaryExpression; There are still error from incomplete migration
2014-12-14 11:29:54 -08:00
Yui T
94d4ac28f9
Move grammar checking: postfixUnaryExpression
2014-12-14 11:12:45 -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
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
Yui T
56cf566f89
Move grammar checking: functionExpression
2014-12-12 15:10:01 -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