Cyrus Najmabadi
3decdb19de
Merge branch 'master' into layering
2014-12-16 23:48:58 -08:00
Cyrus Najmabadi
f459951431
Merge branch 'diagnostics' into sourceFileUpdate
...
Conflicts:
src/compiler/parser.ts
2014-12-16 23:48:00 -08:00
CyrusNajmabadi
63eca44e17
Merge pull request #1522 from Microsoft/LKG2
...
Update LKG.
2014-12-16 23:44:26 -08:00
Mohamed Hegazy
54d1d952e1
Update LKG
2014-12-16 23:42:59 -08:00
Cyrus Najmabadi
291b468262
Update LKG.
2014-12-16 23:22:46 -08:00
Cyrus Najmabadi
5df0ca529e
Merge branch 'master' into layering
...
Conflicts:
src/compiler/checker.ts
src/compiler/parser.ts
2014-12-16 23:15:57 -08:00
Cyrus Najmabadi
2748a5b163
Remove 'grammarDiagnostics' from SourceFile.
2014-12-16 23:00:14 -08:00
Mohamed Hegazy
c5b702d066
Update LKG
2014-12-16 21:51:10 -08:00
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
CyrusNajmabadi
1776734e66
Merge pull request #1423 from Microsoft/refactorGrammarCheck
...
Move grammar checking code into the type checker.
2014-12-16 20:59:55 -08:00
Arnavion
880e5c50d7
Don't allow -noEmit with -declaration
2014-12-16 20:25:20 -08:00
Arnavion
df6aa85d4f
Don't allow -noEmit with -out or -outDir
2014-12-16 20:25:20 -08:00
Arnavion
cd6eb180c6
Don't emit outputs when -noEmit is specified.
2014-12-16 20:25:19 -08:00
Arnavion
dbe5cd0459
Add -noEmit compiler flag.
2014-12-16 20:25:19 -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
c2b03b6384
Address code review
2014-12-16 19:53:42 -08:00
Yui T
9c9bd34352
Address code review
2014-12-16 19:49:40 -08:00
Yui T
d7f607234a
COMPLETE migrating grammar checking; No more errors
2014-12-16 19:30:08 -08:00
Yui T
fdfd8d4863
Cleaning up migrating grammar checking
2014-12-16 19:11:07 -08:00
Cyrus Najmabadi
908d4f61e6
Provide a stronger type for the parent of a variable declaration.
2014-12-16 18:54:21 -08:00
Cyrus Najmabadi
7f893f9b9a
Rename method to be clearer.
2014-12-16 18:50:34 -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
Anders Hejlsberg
fab94d84e5
Merge branch 'master' into spreadAndRest
...
Conflicts:
src/compiler/parser.ts
2014-12-16 18:09:21 -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
Cyrus Najmabadi
fab4955ef7
Add explanatory comments.
2014-12-16 17:10:21 -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
Mohamed Hegazy
ab93b7d35d
Merge pull request #1517 from Arnavion/exec-call-fail
...
Fail the surrounding Jake task if exec'd tool has non-zero exit code.
2014-12-16 16:54:15 -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
7fc343eb43
Fix broken enum value alignment.
2014-12-16 16:27:26 -08:00
Cyrus Najmabadi
f3ce5d763c
CR feedback.
2014-12-16 16:27:14 -08:00
Cyrus Najmabadi
b73128c50f
CR feedback.
2014-12-16 16:17:48 -08:00
Cyrus Najmabadi
97a6abcc07
CR feedback.
2014-12-16 16:12:14 -08:00
CyrusNajmabadi
ffe5aa972c
Merge pull request #1518 from Microsoft/sortCompilerBaselineDiagnostics
...
Sort diagnostics in our baseline output.
2014-12-16 16:11:58 -08:00
Cyrus Najmabadi
f1a2e41a8a
Sort diagnostics in our baseline output.
...
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.
This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00
Anders Hejlsberg
fed3b5c0de
Adding comment
2014-12-16 15:47:22 -08:00
Cyrus Najmabadi
71c82dd33f
Remove obsolete comment.
2014-12-16 15:32:56 -08:00
Arnavion
8c76a4ebd3
Fail the surrounding Jake task if exec'd tool has non-zero exit code.
2014-12-16 15:28:36 -08:00
Cyrus Najmabadi
94d576290e
Don't expose EmitHost. it is only used by a non-exposed function.
2014-12-16 15:10:15 -08:00
Jason Freeman
ab33a65d30
Fix issue #1503 with modules and imports sharing a name
2014-12-16 14:59:21 -08:00
Cyrus Najmabadi
5a2fb94a95
Clean things up so the services layer can easily emit without having to contort compiler hosts.
2014-12-16 14:42:58 -08:00
Cyrus Najmabadi
f5ad79fe7a
Remove the dependency that TypeChecker and Emitter have on Program.
...
Instead, these layers explicitly specify the functionality they need, and don't take in anything extra.
2014-12-16 14:12:17 -08:00
Cyrus Najmabadi
b665323d45
Make the emitter no longer depend on the Program.
...
This breaks layering. Also, it means the emitter depends on too large a surface area.
Now the emitter declares exactly what it needs, and only gets that.
2014-12-16 13:52:47 -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
Cyrus Najmabadi
96c3c90d9a
Rename typechecker parameter related to whether or not we produce diagnostics.
...
Comment what the flag means.
2014-12-16 13:30:34 -08:00
Cyrus Najmabadi
4aa361d4bf
Layer the compiler so that every layer only depends on hte layers below it.
...
The layering is now:
types
core
scanner
parser
binder
checker
emitter
program
2014-12-16 13:14:14 -08:00