Daniel Rosenwasser
9460fb580d
Use 'lastOrUndefined' where appropriate in the services layer.
2015-05-01 18:34:37 -07:00
Jason Freeman
4487fa426b
Rename iterator property of ForStatement to incrementor
2015-04-22 13:29:50 -07:00
Mohamed Hegazy
13ef271831
use @internal comment consistenlly
2015-04-10 16:32:02 -07:00
Mohamed Hegazy
431dce7b84
Merge branch 'master' into APIReviewCleanup
...
Conflicts:
src/services/outliningElementsCollector.ts
2015-04-10 16:11:03 -07:00
Mohamed Hegazy
afe35c810a
Revert "Support an optional type annotation on export default statement"
...
This reverts commit a6a8a9624985bd7d70583154f6dc3f2868c1a0a3.
2015-04-09 16:32:23 -07:00
Mohamed Hegazy
1c91c2c5d0
Mark non-public API surface with the /* @internal */ comment
2015-04-09 14:18:14 -07:00
Mohamed Hegazy
7430f3c9c7
Merge branch 'master' into exportDefaultType
...
Conflicts:
src/compiler/checker.ts
2015-03-15 14:23:40 -07:00
Cyrus Najmabadi
35040b9a85
Use 'let' in the services code.
2015-03-13 13:11:17 -07:00
Mohamed Hegazy
a6a8a96249
Support an optional type annotation on export default statement
2015-03-12 22:52:54 -07:00
Vladimir Matveev
efcf0e6f57
introduce CaseBlock as a block-scoped container for switch statements
2015-03-10 17:50:54 -07:00
Cyrus Najmabadi
a76eb69996
Add an 'isVariableLike' helper function.
2015-03-06 18:45:45 -08:00
Anders Hejlsberg
91e8b821ad
Merge branch 'master' into exportDefault
...
Conflicts:
src/compiler/checker.ts
tests/baselines/reference/contextualTyping.js.map
tests/baselines/reference/contextualTyping.sourcemap.txt
tests/baselines/reference/out-flag.js.map
tests/baselines/reference/properties.js.map
tests/baselines/reference/recursiveClassReferenceTest.js.map
tests/baselines/reference/sourceMap-FileWithComments.js.map
tests/baselines/reference/sourceMap-FileWithComments.sourcemap.txt
tests/baselines/reference/typeResolution.js.map
2015-03-04 06:39:10 -08:00
Anders Hejlsberg
0e8b6dfdf4
Support for 'export default' with expressions
2015-02-25 16:03:03 -08:00
Mohamed Hegazy
bc4057af85
breakpoint support for new import/export syntax
2015-02-24 13:03:14 -08:00
Anders Hejlsberg
f0f4ca6b06
Merge branch 'master' into es6Import
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/emitter.ts
tests/baselines/reference/APISample_compile.js
tests/baselines/reference/APISample_compile.types
tests/baselines/reference/APISample_linter.js
tests/baselines/reference/APISample_linter.types
tests/baselines/reference/APISample_transform.js
tests/baselines/reference/APISample_transform.types
tests/baselines/reference/APISample_watcher.js
tests/baselines/reference/APISample_watcher.types
tests/baselines/reference/recursiveClassReferenceTest.js.map
tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt
2015-02-23 11:15:56 -08:00
Cyrus Najmabadi
8c90fc6bc8
Merge branch 'master' into binaryExpressionEmit
...
Conflicts:
src/compiler/checker.ts
2015-02-20 21:28:15 -08:00
Cyrus Najmabadi
fc229368d1
Include the binary expression's operator in the AST.
2015-02-20 18:56:42 -08:00
Cyrus Najmabadi
eb5936b06f
Merge branch 'master' into baseZero
...
Conflicts:
src/harness/harnessLanguageService.ts
2015-02-20 16:56:58 -08:00
Jason Freeman
1a3294a7d2
Parity sweep for for-in & for-of
2015-02-18 11:35:29 -08:00
Cyrus Najmabadi
124a77cc3a
Remove 'ZeroBased' from all APIs, now that all APIs are zero based.
2015-02-16 19:35:45 -08:00
Cyrus Najmabadi
b3366ec8b4
name more line/char functions more clearly. Use zero based indexing in breakpoints.
2015-02-16 16:18:53 -08:00
Cyrus Najmabadi
11a9df2cc9
Expose zero-based helpers that code will be able to call.
2015-02-16 15:30:21 -08:00
Sheetal Nandi
e0581899fa
Rename existing import declaration to ImportEqualsDeclaration
2015-01-27 14:42:20 -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
c7bb0a5ae6
Don't store variable statement flags on its variable declaration children.
2014-12-16 02:50:38 -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
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
Cyrus Najmabadi
c2d4cd5887
Move TextSpan into the compiler layer.
2014-12-10 13:45:08 -08:00
Cyrus Najmabadi
5bd49fec1d
Initial entrypoint in SourceFile for the LS to call to peform incremental parsing.
...
Right now the entrypoint just causes a full parse to happen. But the LS code is
cleaned up to take advantage of it appropriately.
2014-12-10 11:45:33 -08:00
Cyrus Najmabadi
cc83925f32
Also split out .PropertyDeclaration and .PropertySignature from .Property.
2014-12-08 16:37:35 -08:00
Cyrus Najmabadi
c1b19d761d
Remove the 'Method' syntaxkind and introduce MethodSignature and MethodDeclaration instead.
...
Sharing a single kind here would be bad for incremental scenarios as these two node types
are not interchangeable.
For now, i have updated nearly all code to look for both kinds. However, it may not make sense
in all locations, and we could likely tighten up many code locations to only have to deal with
one or the other.
2014-12-08 16:16:11 -08:00
Cyrus Najmabadi
22d7aed980
CR feedback.
2014-12-03 15:27:14 -08:00
Cyrus Najmabadi
3440869010
Print out methods in the types of object literals as if they were methods, not function typed properties.
2014-12-03 03:19:46 -08:00
Cyrus Najmabadi
ed81cad39a
Remove the 'FunctionBlock' ast kind.
...
We don't want different AST forms for identical syntactic constructs ('Block' and 'FunctionBock').
This prevents reuse in incremental scenarios and forces the incremental parser to know when to
change between the two.
2014-12-02 22:52:21 -08:00
Cyrus Najmabadi
a8badd921e
Update the name of 'PropertyAssignment' to 'LonghandPropertyAssignment'.
...
'PropertyAssignment' is now the name of the super interface brand we use for all thigns that can
be members of an object literal.
2014-12-02 22:01:52 -08:00
Cyrus Najmabadi
03a2d0197b
Make 'CatchClause' have-a block, instead of be-a block.
2014-12-01 23:21:27 -08:00
Cyrus Najmabadi
f8a4fb0a15
Put semantically relevant tokens in the tree.
2014-12-01 19:19:50 -08:00
Cyrus Najmabadi
cc1da37e72
Use a single member to represent a module reference.
2014-12-01 13:24:33 -08:00
Cyrus Najmabadi
e4b543981c
Updating syntax kind names.
2014-11-29 15:58:55 -08:00
Cyrus Najmabadi
e1011aa2f0
Rename syntax properties to match Roslyn/Fidelity naming.
2014-11-29 15:47:02 -08:00
Vladimir Matveev
ced8785bd3
eliminate usage of TypeScript module from services layer
2014-11-17 17:01:23 -08:00
Sheetal Nandi
61c45816c4
Type aliases cannot have breakpoints
2014-11-06 15:40:28 -08:00
Jason Freeman
279166be50
Address feedback
2014-11-06 11:51:49 -08:00
Jason Freeman
6c85dbe140
Refactor Declaration.name into Identifier | ComputedPropertyName
2014-11-05 17:47:30 -08:00
Vladimir Matveev
7d80b7186d
do not treat module that contains only const enums as instantiated
2014-11-01 00:56:00 -07:00
Vladimir Matveev
270d18711c
addressed CR feedback
2014-10-30 00:55:44 -07:00
Vladimir Matveev
e949eda583
const enums, iteration 1: const enums can be used in imports, const enums can be merged only with const enums.
2014-10-29 00:17:16 -07:00
Sheetal Nandi
3f2211f463
Code review feedback update
2014-10-22 11:13:56 -07:00
Sheetal Nandi
e87f18cc63
Exported variables can have breakpoint even if they do not have initializer
2014-10-21 18:09:05 -07:00
Sheetal Nandi
e464a3d6fb
Span on whole method/accessors if they are of class declaration
2014-10-21 14:19:41 -07:00