Jason Freeman
5596993351
Merge branch 'master' into forOf
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
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
2015-02-18 14:49:10 -08:00
Jason Freeman
1a3294a7d2
Parity sweep for for-in & for-of
2015-02-18 11:35:29 -08:00
Jason Freeman
65d831e8b3
Merge branch 'master' of https://github.com/Microsoft/TypeScript into esSymbols
2015-02-16 10:38:22 -08:00
Vladimir Matveev
a9df539b7e
added check that var and let\const cannot share scope, added check that var is not shadowed by the let\const from the inner scope
2015-02-12 16:37:07 -08:00
Jason Freeman
d07ed679a0
Support indexing with known symbols
2015-02-06 21:32:40 -08:00
Jason Freeman
f344654460
Add named property symbol for known Symbol properties
2015-02-06 21:31:37 -08:00
Jason Freeman
d788624332
Move hasDynamicName to utilities.ts
2015-02-06 21:31:30 -08:00
Cyrus Najmabadi
28c1a23e7c
Track performance statistics in the ts module.
...
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi
c7160ddb31
Rename semanticDiagnostics to bindDiagnotics.
2015-02-04 13:31:36 -08:00
Cyrus Najmabadi
95702a89a7
Fix spelling of 'Filename' to be 'FileName'.
2015-02-03 16:08:46 -08:00
Jason Freeman
4a7aa7e929
Address CR feedback
2015-01-22 19:09:10 -08:00
Jason Freeman
eeb4dc447b
Merge branch 'master' into computedProperties
2015-01-21 15:51:31 -08:00
Sheetal Nandi
4d1182401c
Type alias declaration is type only declaration and doesnt make module instantiated
...
Handles #1724
2015-01-21 11:18:42 -08:00
Jason Freeman
ef06879a75
Create symbols for computed properties
2015-01-19 16:36:36 -08:00
Cyrus Najmabadi
b37b98138d
Merge branch 'master' into layering
...
Conflicts:
src/compiler/checker.ts
src/compiler/utilities.ts
2014-12-17 15:35:30 -08:00
Cyrus Najmabadi
7f893f9b9a
Rename method to be clearer.
2014-12-16 18:50: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
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
c7bb0a5ae6
Don't store variable statement flags on its variable declaration children.
2014-12-16 02:50:38 -08:00
Cyrus Najmabadi
41e59824fb
Merge branch 'master' into funcDeclsInBlocks
2014-12-15 20:50:48 -08:00
Cyrus Najmabadi
cb8d2f28ae
Simplify how we set container.nextContainer now that we don't double recurse.
2014-12-15 14:43:31 -08:00
Cyrus Najmabadi
d3bfed13f8
Simplify the binder so it does not need to double recurse down constructor parameter nodes.
2014-12-15 13:23:06 -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
Anders Hejlsberg
7bc35b3ae0
Merge branch 'master' into destructuring
...
Conflicts:
src/compiler/binder.ts
src/compiler/checker.ts
src/compiler/emitter.ts
src/compiler/parser.ts
src/services/services.ts
tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt
2014-12-09 11:26:43 -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
Anders Hejlsberg
459dee0e84
Merge branch 'master' into destructuring
...
Move downlevel vs. ES6 emit branching into individual emit functions
2014-12-08 14:42:38 -08:00
Anders Hejlsberg
05c9966180
Addressing CR feedback:
...
New SyntaxKind.BindingElement
Introduced new VariableLikeDeclaration and BindingElement types
Cleaned up VariableDeclaration, ParameterDeclaration, PropertyDeclaration types
Node kind of binding element is always SyntaxKind.BindingElement
Changed CheckVariableDeclaration to CheckVariableLikeDeclaration
Reorganized CheckVariableLikeDeclaration
2014-12-06 13:53:06 -08:00
Anders Hejlsberg
816abb19e4
Merge branch 'master' into destructuring
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/emitter.ts
src/compiler/parser.ts
src/compiler/types.ts
src/services/navigationBar.ts
tests/baselines/reference/assignmentLHSIsValue.errors.txt
tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
tests/baselines/reference/parserErrorRecovery_ParameterList2.errors.txt
2014-12-03 16:43:01 -08:00
Cyrus Najmabadi
22d7aed980
CR feedback.
2014-12-03 15:27:14 -08:00
Cyrus Najmabadi
0900005438
Don't rewrite function property assignments in the AST.
2014-12-03 01:46:04 -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
f8f314868b
Merge branch 'master' into lessDirectCallsToError
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
2014-12-01 17:42:59 -08:00
Cyrus Najmabadi
0cdc824079
Provide brands for Declarations.
2014-11-30 14:21:34 -08:00
Cyrus Najmabadi
e4b543981c
Updating syntax kind names.
2014-11-29 15:58:55 -08:00
Jason Freeman
1a8816f459
Address feedback
2014-11-26 20:10:49 -08:00
Jason Freeman
f6266fc99e
Checker refactor for FunctionLike and VariableOrProperty
2014-11-25 16:09:05 -08:00
Sheetal Nandi
4320c67a38
Merge branch 'master' into constLet
2014-11-20 16:56:14 -08:00
Anders Hejlsberg
58c3c2faae
Merge branch 'master' into destructuring
...
Conflicts:
src/compiler/binder.ts
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
2014-11-20 14:31:55 -08:00
Anders Hejlsberg
850f3cb609
Destructuring parameter declarations
2014-11-19 14:42:06 -08:00
Cyrus Najmabadi
00a49536fe
Initial refactoring to support doing grammar checks as a separate pass of the tree.
...
Right now, this means hiding 'syntacticDiagnostics' behind a getter function that
only computes all the syntactic diagnostics (parser+grammar checks) lazily.
This will help incremental parsing out as we can reuse nodes that have grammar
errors in them, and we dont' have to even do grammar checks if this is not the
full-type-check type-checker.
2014-11-18 15:51:55 -08:00
Yui T
1b66ee6f3a
Merge branch 'master' into shorthandProperty
...
Conflicts:
src/compiler/checker.ts
2014-11-17 11:35:02 -08:00
Cyrus Najmabadi
ffa48152eb
update comment.
2014-11-14 17:15:25 -08:00
Cyrus Najmabadi
7fc05f5017
CR feedback.
2014-11-14 17:13:00 -08:00
Cyrus Najmabadi
ba2e4bff10
cr feedback.
2014-11-14 16:40:11 -08:00
Cyrus Najmabadi
d948510425
Function and constructor types in the syntax tree.
2014-11-14 16:23:51 -08:00
Yui T
a8ebdf0cbd
Address code review
2014-11-13 12:02:13 -08:00