Cyrus Najmabadi
60c62e5b6b
Don't consume nodes during calls to isListElement.
2014-12-12 03:06:05 -08:00
Cyrus Najmabadi
e32d030144
Update the source file positions as well.
2014-12-12 02:38:07 -08:00
Cyrus Najmabadi
9c0e4211bc
Properly adjust nodes while walking down the tree.
2014-12-12 02:34:53 -08:00
Cyrus Najmabadi
2f833d5f97
Provide a way for tests to try out incremental parsing.
2014-12-12 02:21:45 -08:00
Cyrus Najmabadi
62dd12cb7a
Move functions from 'types.ts' to 'utilities.ts'.
2014-12-12 00:56:14 -08:00
Cyrus Najmabadi
f218ce7684
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/parser.ts
tests/baselines/reference/APISample_node_compile.js
tests/baselines/reference/APISample_node_compile.types
tests/baselines/reference/APISample_standalone_compile.js
tests/baselines/reference/APISample_standalone_compile.types
2014-12-12 00:52:07 -08:00
Cyrus Najmabadi
7eb0f42560
Add assert.
2014-12-12 00:48:08 -08:00
Cyrus Najmabadi
15f3b89297
Add the syntax cursor. We will use this to retrieve nodes from the previous source tree.
2014-12-12 00:41:12 -08:00
Cyrus Najmabadi
14cb05f443
Add explanatory comments to explain how node moving works.
2014-12-11 23:39:44 -08:00
Cyrus Najmabadi
c9f8aaecb6
Don't incrementally parse when teh old tree had no source module elements.
...
Also, provide explanatory comments as to why we pass setNodeParents:true.
2014-12-11 22:16:06 -08:00
Cyrus Najmabadi
400cf91e96
Nodes are not resuable if the parser has a outstanding, unattached, parse error.
...
This is conservative, but safe. If we wanted to support node reuse here,
we'd have to carefully ensure that the errors and tree shape would be the
same that hte normal parse would produce.
2014-12-11 18:23:14 -08:00
Cyrus Najmabadi
0391e02fee
Merge branch 'master' into sourceFileUpdate
...
Conflicts:
src/compiler/parser.ts
src/services/formatting/tokenSpan.ts
src/services/text.ts
2014-12-11 18:08:57 -08:00
CyrusNajmabadi
122d8a4d98
Merge pull request #1456 from Microsoft/mergeMarkers
...
Make the compiler resilient to encountering merge conflict markers in a source code file.
2014-12-11 18:04:25 -08:00
CyrusNajmabadi
353dd9f988
Merge pull request #1458 from Microsoft/test262ErrorBit
...
For 262 tests, emit a bit in the baseline stating if the node had an error or not.
2014-12-11 18:03:31 -08:00
Cyrus Najmabadi
11dd1ca00f
For 262 tests, emit a bit in the baseline stating if the node had an error or not.
2014-12-11 17:53:24 -08:00
Vladimir Matveev
53bdd562c8
remove trailing comma
2014-12-11 17:47:29 -08:00
Cyrus Najmabadi
c8a2d5de1a
CR feedback.
2014-12-11 17:35:02 -08:00
Jason Freeman
7f097140c9
Merge branch 'release-1.4'
2014-12-11 17:29:03 -08:00
Jason Freeman
e502a866df
Merge branch 'release-1.4' into disableComputedProperty
2014-12-11 17:22:54 -08:00
Jason Freeman
06d7ef14cf
Don't quote the word 'generators' in error messages
2014-12-11 17:22:22 -08:00
Mohamed Hegazy
b87839dfb1
respond to code review commments
2014-12-11 17:08:18 -08:00
Mohamed Hegazy
1049b7139d
Respond to code review comments
2014-12-11 17:08:11 -08:00
Mohamed Hegazy
de73d50ee9
Remove compiletionSettings handeling from shims
2014-12-11 17:08:05 -08:00
Cyrus Najmabadi
7df3a407c2
Make the compiler resilient to encountering merge conflict markers in a source code file.
2014-12-11 16:56:10 -08:00
Jason Freeman
d385f2ebf4
Disable computed properties in TypeScript 1.4
2014-12-11 16:49:53 -08:00
Mohamed Hegazy
2f6bb57137
Merge branch 'release-1.4' into compilationSettingsCleanup
2014-12-11 16:24:05 -08:00
Cyrus Najmabadi
fbeb7dd75e
Merge branch 'funcDeclsInBlocks' into sourceFileUpdate
...
Conflicts:
src/services/outliningElementsCollector.ts
2014-12-11 15:16:46 -08:00
Cyrus Najmabadi
63dbb78d02
Merge branch 'master' into sourceFileUpdate
2014-12-11 15:07:49 -08:00
Cyrus Najmabadi
76df92cc78
Merge branch 'master' into funcDeclsInBlocks
2014-12-11 14:59:03 -08:00
Daniel Rosenwasser
d92d6379bd
Merge branch 'release-1.4' into mergeFor1.4ToMaster
...
Conflicts:
src/compiler/parser.ts
src/compiler/utilities.ts
src/harness/harness.ts
tests/baselines/reference/APISample_node_compile.js
tests/baselines/reference/APISample_node_compile.types
tests/baselines/reference/APISample_standalone_compile.js
tests/baselines/reference/APISample_standalone_compile.types
tests/cases/compiler/APISample_node_compile.ts
tests/cases/compiler/APISample_standalone_compile.ts
2014-12-11 14:49:43 -08:00
Cyrus Najmabadi
b692ea9b66
Remove TryBlock and FinallyBlock.
...
They break the rule that syntactically identical constructs use the same syntax kind. This
prevents node reuse in incremental parsing.
2014-12-11 14:40:25 -08:00
Daniel Rosenwasser
987dd0cede
Fixed 'use strict' check.
2014-12-11 14:21:39 -08:00
Daniel Rosenwasser
94cce178dd
Responded to CR feedback.
...
Conflicts:
src/compiler/parser.ts
2014-12-11 14:21:18 -08:00
Daniel Rosenwasser
036209a89e
Moved createCompilerHost into parser.ts
...
Conflicts:
src/compiler/tsc.ts
2014-12-11 14:11:01 -08:00
Mohamed Hegazy
b45ab580d5
Add tests for public declarations
2014-12-11 14:02:01 -08:00
Daniel Rosenwasser
0ce3861602
Moved non-exposed functions to utilities; fix up emitted .d.ts in Jakefile.
...
Conflicts:
src/compiler/parser.ts
2014-12-11 14:00:36 -08:00
Daniel Rosenwasser
a173017aa6
Explicit default target for fourslash tests in the harness.
2014-12-11 13:44:47 -08:00
Mohamed Hegazy
1fe19136d7
Remove unused parameter to getCompletionsAtPosition
...
Conflicts:
tests/baselines/reference/APISample_node_compile.js
tests/baselines/reference/APISample_node_compile.types
tests/baselines/reference/APISample_standalone_compile.js
tests/baselines/reference/APISample_standalone_compile.types
2014-12-11 13:44:38 -08:00
Daniel Rosenwasser
8420fae7a4
Make getLocalizedDiagnosticMessages and getCancellationToken optional
2014-12-11 13:44:32 -08:00
Mohamed Hegazy
a7219e7569
move OutliningSpan definitions to services to ensure it is visible in definitions file
2014-12-11 13:44:12 -08:00
Daniel Rosenwasser
f207acff51
Removed tokenSpan.ts.
2014-12-11 13:44:08 -08:00
Mohamed Hegazy
b87a7fafaf
move formatting.ts and smartIndernter.ts into formatting folder to match thier namespace
2014-12-11 13:44:02 -08:00
Mohamed Hegazy
791ba336cc
remove unused file
2014-12-11 13:43:55 -08:00
Mohamed Hegazy
eaa812e3b5
Move Map to types to ensure it is visible in definition files
2014-12-11 13:43:48 -08:00
Mohamed Hegazy
841842b733
use ts.System for tests
2014-12-11 13:43:44 -08:00
Mohamed Hegazy
606ee84fd1
move text defintions to services.ts
2014-12-11 13:43:39 -08:00
Daniel Rosenwasser
be1eb3430c
Put 'sys' into the 'ts' module.
2014-12-11 13:43:34 -08:00
Daniel Rosenwasser
c5510444d9
Use __filename for 'getExecutingFilePath'.
2014-12-11 13:43:29 -08:00
Cyrus Najmabadi
12f8bfb687
Unify accessor declaration parsing.
2014-12-10 23:33:30 -08:00
Vladimir Matveev
997aadb902
Merge pull request #1437 from Microsoft/formatting_conditionals
...
conditionals are now introduce indentation scope
2014-12-10 23:28:54 -08:00