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
Yui T
003515655e
Move grammar checking: methodDeclaration; there are still erros from incomplete grammar migration
2014-12-16 12:51:42 -08:00
Mohamed Hegazy
adb0393458
Add internal definitions to a diffrent .d.ts files
2014-12-16 12:26:56 -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
Mohamed Hegazy
1f9904f823
Merge pull request #1497 from Microsoft/internalDefinitions
...
Add internal definitions to a diffrent .d.ts files
2014-12-16 12:22:08 -08:00
Cyrus Najmabadi
32729b1379
Merge branch 'master' into sourceFileUpdate
2014-12-16 12:03:21 -08:00
Cyrus Najmabadi
c9ee88e5c4
Adding incremental test.
2014-12-16 11:58:47 -08:00
Jason Freeman
ba963c3220
Merge branch 'release-1.4' into parsePrimaryExpression
2014-12-16 11:25:57 -08:00
Jason Freeman
eaf1c5aa5f
Change the order of switch statements instead of converting to if-else
2014-12-16 11:25:22 -08:00
Mohamed Hegazy
5c4c08a667
Merge pull request #1500 from Arnavion/exec-process-stderr-number
...
Fixed "TypeError: invalid data" when executables run by exec exited with non-zero code.
2014-12-16 10:09:43 -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
935ba82efd
Don't check container invariants. They don't hold true in incremental scenarios.
2014-12-16 03:08:29 -08:00
Cyrus Najmabadi
6326b9d51f
Merge branch 'master' into sourceFileUpdate
2014-12-16 02:59:05 -08:00
Cyrus Najmabadi
592ad476a8
Reduce unnecessary arrow function allocations.
2014-12-16 02:53:58 -08:00
Cyrus Najmabadi
c7bb0a5ae6
Don't store variable statement flags on its variable declaration children.
2014-12-16 02:50:38 -08:00
Arnavion
f042044fce
Fixed "TypeError: invalid data" when executables run by exec exited with non-zero code.
...
The original error was because process.stderr only allows writing Strings or Buffers, but status is a Number.
Also, the message parameter of the "error" handler is just the amalgam of all output written to stderr. This is already logged by the "stderr" handler, so there's no need to write it to process.stderr again.
2014-12-16 02:45:17 -08:00
Vladimir Matveev
59c73c5f34
Merge pull request #1466 from Microsoft/linked_imports
...
defer decision whether import used on the right side of import declarati...
2014-12-16 00:46:26 -08:00
Vladimir Matveev
5b38cb9a69
harden 'get import declaration' logic
2014-12-16 00:34:51 -08:00
Daniel Rosenwasser
60f3b9b317
Merge pull request #1492 from Microsoft/contextualTemplateTyping
...
Fixed contextual type resolution and type checking for tagged template expressions.
2014-12-16 00:04:45 -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
Mohamed Hegazy
ef71290f00
Update LKG
2014-12-15 22:21:17 -08:00