Cyrus Najmabadi
a988283988
Merge branch 'master' into sourceFileUpdate
2014-12-12 11:44:10 -08:00
Cyrus Najmabadi
83f0c91999
Properly emit 'void 0' when emitting destructuring assignments.
2014-12-12 11:28:05 -08:00
Anders Hejlsberg
86a9c80ff8
Adding tests and accepting new baselines
2014-12-12 10:56:22 -08:00
Jason Freeman
8be44f111c
Don't quote the word 'generators' in error messages
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
2014-12-12 10:41:21 -08:00
Jason Freeman
867e2a8b6f
Disable computed properties in TypeScript 1.4
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
2014-12-12 10:35:01 -08:00
Vladimir Matveev
ed9234ed32
do not indent leading comments that attached to tokens with errors
2014-12-12 09:00:20 -08:00
Vladimir Matveev
6b438c22fd
added test for inherited indentation
2014-12-12 08:59:47 -08:00
Vladimir Matveev
59a31acca1
conditionals are now introduce indentation scope
2014-12-12 08:59:26 -08:00
Cyrus Najmabadi
d5c6636854
Parse function and variable declarations uniformly, whether they're at teh top level, or inside a method.
...
This is necessary for incremental parsing correctness, as the incremental parser
will attempt to reuse these types of nodes in both contexts, and we much ensure
it creates the same trees you would get if you were parsing normally.
2014-12-12 03:52:01 -08:00
Cyrus Najmabadi
8820ca0596
Change the error-bit to be a node-flag and not a parser context flag.
...
Do not reuse nodes with errors in them. We need to reparse them to make
sure we produce the right errors the second time around.
2014-12-12 03:25:49 -08:00
Cyrus Najmabadi
60c62e5b6b
Don't consume nodes during calls to isListElement.
2014-12-12 03:06:05 -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
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
Daniel Rosenwasser
854586e824
Merge branch 'release-1.4' into fixProcessDiagMessagesProbWith1.4Merge
...
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
tests/cases/compiler/APISample_node_compile.ts
tests/cases/compiler/APISample_standalone_compile.ts
2014-12-12 00:09:23 -08:00
Daniel Rosenwasser
87b7ddd51b
Merge pull request #1453 from Microsoft/fixSysDependencyForDiagnostics
...
Fix sys dependency for processDiagnosticMessages.ts
2014-12-12 00:03:43 -08:00
Daniel Rosenwasser
c5943de3cd
Just temporarily removing the tests until we can get back into a good state.
2014-12-11 23:54:33 -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
Jason Freeman
7f097140c9
Merge branch 'release-1.4'
2014-12-11 17:29:03 -08:00
Jason Freeman
06d7ef14cf
Don't quote the word 'generators' in error messages
2014-12-11 17:22:22 -08:00
Cyrus Najmabadi
402c57cf7e
Adding classification test.
2014-12-11 17:04:21 -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
Daniel Rosenwasser
47ed584d12
Re-add baselines.
2014-12-11 16:39:54 -08:00
Daniel Rosenwasser
cfca38f0af
Remove baselines.
2014-12-11 16:39:32 -08:00
Yui T
279aa39467
Move grammar checking: classDeclaration; there are still errors from checking declare keyword and grammar checking of moduleDeclaration
2014-12-11 16:26:27 -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
036209a89e
Moved createCompilerHost into parser.ts
...
Conflicts:
src/compiler/tsc.ts
2014-12-11 14:11:01 -08:00
Daniel Rosenwasser
77d5d40d20
Fixed up baselines.
2014-12-11 14:02:07 -08:00
Mohamed Hegazy
b45ab580d5
Add tests for public declarations
2014-12-11 14:02:01 -08:00
Yui T
907d1d001b
Move grammar checking: callExpression, newExpression
2014-12-11 12:07:01 -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
Cyrus Najmabadi
ba0fd4453d
Add additional incremental tests.
2014-12-10 23:04:13 -08:00
Cyrus Najmabadi
fe57f3d2e4
Support modifiers on object literal methods and accessors, and question tokens on object literal methods.
...
This makes parsing of these constructs the same whether they are in an object literal or a class.
This is important for incrementla parsing for knowing if we can reuse these nodes if we run
into them.
2014-12-10 22:30:40 -08:00
Vladimir Matveev
638518cae2
Merge pull request #1441 from Microsoft/dont_indent_comments_on_errors
...
do not indent leading comments that attached to tokens with errors
2014-12-10 22:02:15 -08:00
Vladimir Matveev
d69ba56ece
added test for inherited indentation
2014-12-10 22:01:34 -08:00
Yui T
547e1296f8
Move grammar checking: Arrow function
2014-12-10 21:52:18 -08:00
Cyrus Najmabadi
ee828dc1da
More incremental parser tests.
2014-12-10 19:15:44 -08:00
Cyrus Najmabadi
563b234240
Incremental parser tests should verify the same set of diagnostics are produced.
2014-12-10 19:07:36 -08:00
Cyrus Najmabadi
fc27f72324
Understand and handle modifiers on function declarations and variable statements within blocks.
...
This ensures reusability for functions/variables that may have been outside a block, but end up
inside one afterwards. It also ensure the same tree is produced when incremental parsing.
i.e. if you have:
declare function F() { }
And you add a { above it, then we current have an incremental parsing bug. Namely we would see
a FunctionDeclaration node and say 'yes, we can reuse that node while parsing the block'. This
is currently broken because the normal parse would not have normally accepted such a node (because
of the modifiers).
This was an example of contextual parsing of the same kind of node. Something which we do not
want to do if we want incremental parsing to work properly.
2014-12-10 18:52:56 -08:00
Mohamed Hegazy
774c061779
Merge branch 'release-1.4' into suppressNoImplicitAnyErrors
...
Conflicts:
src/compiler/parser.ts
src/harness/harness.ts
2014-12-10 18:45:28 -08:00
Yui T
31e49ed93e
Move grammar checking: callSignature, constructorType, ConstructSignature, FunctionType, IndexSignature
2014-12-10 18:39:24 -08:00
Daniel Rosenwasser
905d978883
Moved createCompilerHost into parser.ts
2014-12-10 17:13:39 -08:00
Daniel Rosenwasser
7fb92f8af0
Fixed up baselines.
2014-12-10 16:57:02 -08:00
Mohamed Hegazy
38bf383f03
Add tests for public declarations
2014-12-10 16:54:42 -08:00
Daniel Rosenwasser
9ad6eb21ed
Merge pull request #1341 from Microsoft/escapingTheTemplateOfDoom
...
Template string escaping fixes
2014-12-10 16:29:00 -08:00
Anders Hejlsberg
d2f500292f
Make initial inferences from parameterless function expressions ( #1186 )
2014-12-10 16:02:39 -08:00
Vladimir Matveev
10d08b816e
do not indent leading comments that attached to tokens with errors
2014-12-10 15:08:26 -08:00
Anders Hejlsberg
35adeb8363
Addressing CR feedback
2014-12-10 14:44:31 -08:00
Anders Hejlsberg
98c9f75e21
Adding test case
2014-12-10 14:41:37 -08:00
Cyrus Najmabadi
888b88ee43
Move textSpan and textChangeRange impls to the compiler layer.
2014-12-10 14:36:37 -08:00
Anders Hejlsberg
ab4706a211
Merge pull request #1433 from Microsoft/typeGuardWithAny
...
Type guards should not affect values of type any
2014-12-10 14:33:31 -08:00
Anders Hejlsberg
2876ba6a6c
Addressing CR feedback
2014-12-10 14:25:02 -08:00
Vladimir Matveev
30ada4cffe
conditionals are now introduce indentation scope
2014-12-10 14:03:14 -08:00
Cyrus Najmabadi
c2d4cd5887
Move TextSpan into the compiler layer.
2014-12-10 13:45:08 -08:00
Mohamed Hegazy
b0574cbdf9
Respond to code review comments
2014-12-10 12:37:09 -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
Anders Hejlsberg
37b5c74b93
Adding test case
2014-12-10 10:17:48 -08:00
Cyrus Najmabadi
1170a1c436
Only set parents for parse trees in the LS for the syntactic trees.
...
we don't need this for the semantic trees because the compiler will set them all during
the binding.
2014-12-10 10:09:40 -08:00
Cyrus Najmabadi
dd2c869d7b
Use chai asserts.
2014-12-09 19:49:40 -08:00
Cyrus Najmabadi
aa30ac8a9c
Add incremental test.
2014-12-09 19:37:26 -08:00
Cyrus Najmabadi
2a845726ab
Add incremental test.
2014-12-09 18:36:32 -08:00
Cyrus Najmabadi
3c35b9097f
Add incremental test.
2014-12-09 18:35:23 -08:00
Cyrus Najmabadi
58d36afbec
Add incremental test.
2014-12-09 18:32:43 -08:00
Cyrus Najmabadi
3928f743ac
Add incremental test.
2014-12-09 18:30:40 -08:00
Cyrus Najmabadi
01ead476cf
Add incremental test.
2014-12-09 18:29:18 -08:00
Cyrus Najmabadi
b8bb8e9998
Add incremental test.
2014-12-09 18:27:59 -08:00
Cyrus Najmabadi
467d303c67
Add incremental test.
2014-12-09 18:26:50 -08:00
Cyrus Najmabadi
dad3faecf3
Add incremental test.
2014-12-09 18:25:10 -08:00
Cyrus Najmabadi
c489c4fcfe
Add incremental test.
2014-12-09 18:24:16 -08:00
Cyrus Najmabadi
9b53947d51
Add incremental test.
2014-12-09 18:23:25 -08:00
Yui T
afcf11545c
Move grammar checking: type parameters
2014-12-09 18:23:07 -08:00
Cyrus Najmabadi
afec0fb9f0
Add incremental test.
2014-12-09 18:17:11 -08:00
Cyrus Najmabadi
197b62e92a
Add incremental test.
2014-12-09 18:13:09 -08:00
Cyrus Najmabadi
025dd23c1b
Add incremental test.
2014-12-09 18:11:56 -08:00
Cyrus Najmabadi
78c4b92216
Add incremental test.
2014-12-09 18:10:15 -08:00
Cyrus Najmabadi
d6fa98d00b
Add incremental test.
2014-12-09 18:07:48 -08:00
Cyrus Najmabadi
ec13fbee96
Add incremental test.
2014-12-09 18:05:45 -08:00
Cyrus Najmabadi
3e70073211
Add incremental test.
2014-12-09 18:03:52 -08:00
Cyrus Najmabadi
18f9acb7fc
Add incremental test.
2014-12-09 18:00:08 -08:00
Cyrus Najmabadi
b8942992a0
Add incremental test.
2014-12-09 17:58:23 -08:00
Cyrus Najmabadi
418c0d9d91
Add incremental test.
2014-12-09 17:57:13 -08:00
Cyrus Najmabadi
5b2778c200
Add incremental test.
2014-12-09 17:45:50 -08:00
Cyrus Najmabadi
666363a7de
Add incremental test.
2014-12-09 17:42:36 -08:00
Cyrus Najmabadi
e564fa5c9d
Add incremental test.
2014-12-09 17:37:17 -08:00
Cyrus Najmabadi
c307d306c0
Add incremental test.
2014-12-09 17:34:26 -08:00
Cyrus Najmabadi
c436ff47a1
Add incremental test.
2014-12-09 17:33:15 -08:00
Cyrus Najmabadi
c7fcbb9f6b
Add incremental test.
2014-12-09 17:29:52 -08:00
Cyrus Najmabadi
1cd2fb4333
Add incremental test.
2014-12-09 17:23:14 -08:00
Cyrus Najmabadi
c482a9e0e3
Add incremental test.
2014-12-09 17:22:15 -08:00
Cyrus Najmabadi
6058dbbc2f
Add incremental test.
2014-12-09 17:21:30 -08:00
Cyrus Najmabadi
d5e2ab993e
Add incremental test.
2014-12-09 17:20:44 -08:00
Cyrus Najmabadi
a1b8a7891b
Add incremental test.
2014-12-09 17:19:44 -08:00
Cyrus Najmabadi
82098d1568
Add incremental test.
2014-12-09 17:18:18 -08:00
Cyrus Najmabadi
d549677911
Add incremental test.
2014-12-09 17:15:13 -08:00
Cyrus Najmabadi
fa86c88c47
Add incremental test.
2014-12-09 17:13:33 -08:00
Cyrus Najmabadi
7f605332fc
Add incremental test.
2014-12-09 17:12:44 -08:00
Cyrus Najmabadi
22f39c5f99
Add incremental test.
2014-12-09 17:11:32 -08:00
Cyrus Najmabadi
e59ba41d17
Add incremental test.
2014-12-09 17:09:33 -08:00
Cyrus Najmabadi
bb34a20b4d
Add incremental test.
2014-12-09 17:07:51 -08:00
Cyrus Najmabadi
e41bed82e4
Add incremental test.
2014-12-09 17:06:44 -08:00
Cyrus Najmabadi
a0a8ee0d4f
Add incremental test.
2014-12-09 17:05:14 -08:00
Cyrus Najmabadi
45f87131ab
Add incremental test.
2014-12-09 16:59:02 -08:00
Cyrus Najmabadi
de84ddd815
Add incremental test.
2014-12-09 16:57:51 -08:00
Cyrus Najmabadi
778e180e40
Add incremental test.
2014-12-09 16:56:00 -08:00
Cyrus Najmabadi
bcffd5331c
Add incremental test.
2014-12-09 16:55:02 -08:00
Cyrus Najmabadi
4de7fa0181
Add incremental test.
2014-12-09 16:54:06 -08:00
Cyrus Najmabadi
d8ff734bfc
Add incremental test.
2014-12-09 16:53:18 -08:00
Cyrus Najmabadi
2497d9abdf
Add incremental test.
2014-12-09 16:51:55 -08:00
Cyrus Najmabadi
a268cbf2d8
Add incremental test.
2014-12-09 16:50:31 -08:00
Cyrus Najmabadi
9d457701cc
Add incremental test.
2014-12-09 16:47:19 -08:00
Cyrus Najmabadi
fa4b68fa6c
Initial test harness for incremental parser tests.
2014-12-09 16:39:52 -08:00
Yui T
2c575dae27
Move grammar checking: type parameters
2014-12-09 16:33:20 -08:00
Mohamed Hegazy
0a1eabc9aa
Add new compiler flag to suppress noImplicitAny errors for object access
2014-12-09 14:08:44 -08:00
Anders Hejlsberg
bb70e9eb12
Merge pull request #1346 from Microsoft/destructuring
...
Destructuring
2014-12-09 11:39:23 -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
Vladimir Matveev
0871801352
inherit delta from nodes on the same line
2014-12-09 10:47:27 -08:00
Vladimir Matveev
cd2016c48a
Merge pull request #1416 from Microsoft/inherited_deltas
...
inherit delta from nodes on the same line
2014-12-09 10:46:41 -08:00
Vladimir Matveev
7ed4225413
inherit delta from nodes on the same line
2014-12-09 04:55:33 -08:00
Vladimir Matveev
345de374e4
Merge pull request #1405 from Microsoft/formatting_space_before_comma
...
fix formatting to add space after comma between arguments when arguments...
2014-12-08 17:46:52 -08:00
Mohamed Hegazy
9d31d356b4
Merge pull request #1400 from Microsoft/addMethodToBoolean
...
Add new method on interface Boolean to ensure it is not assignable from other types
2014-12-08 17:09:27 -08:00
Yui T
aee0b9e8a1
Merge branch 'master' into fixSpeculativeParse
...
Conflicts:
tests/baselines/reference/parserCommaInTypeMemberList2.errors.txt
2014-12-08 16:35:51 -08:00
Yui T
c1d509a940
Update and add test cases
2014-12-08 15:47:24 -08:00
Cyrus Najmabadi
5db51fead8
Better error recovery when encountering an errant comma in a semicolon delimited list.
2014-12-08 15:35:09 -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
Vladimir Matveev
929d359bdf
fix formatting to add space after comma between arguments when arguments starts with open paren
2014-12-08 14:28:19 -08:00
Mohamed Hegazy
80c5acc04e
Add new method on interface Boolean to ensure it is not assignable from other types
2014-12-08 11:22:52 -08:00
Vladimir Matveev
98750ca7b4
Merge pull request #1389 from Microsoft/colorize_type_aliases
...
add classification for type aliases
2014-12-06 07:24:59 -08:00
Vladimir Matveev
f30bb7ec35
add classification for type aliases
2014-12-05 17:32:36 -08:00
Vladimir Matveev
b9bda98256
fetch actual parameter name of indexer when printing literal type
2014-12-05 16:58:49 -08:00
Anders Hejlsberg
4118ffc703
Accepting new baselines
2014-12-04 17:43:51 -08:00
Sheetal Nandi
e29aadb4c4
"let" should only be considered a keyword in strict mode, or when it starts an actual construct
...
Handles #1301
2014-12-04 16:45:09 -08:00
Sheetal Nandi
a4ab192b6f
Fix the merge conflicts
2014-12-04 13:38:51 -08:00
Sheetal Nandi
e3320c2530
Merge pull request #1362 from Microsoft/contextSensitiveExpressions
...
Resolve the context sensitive expression containers before resolving node
2014-12-04 13:02:56 -08:00
CyrusNajmabadi
4d0f9920e9
Merge pull request #1364 from Microsoft/coverage
...
Add grammar walker test coverage cases.
2014-12-04 13:01:42 -08:00
Daniel Rosenwasser
6a882e7392
Merge pull request #1363 from Microsoft/noMoreExpandoBar
...
Fixed issue where missing identifiers pushed trivia into the navigation bar
2014-12-04 12:44:58 -08:00
Cyrus Najmabadi
d796bf1e0a
Improve the flexibility of speculative parsing.
...
We now no longer fail a speculative parse just because an error was encountered at any point while
speculating. instead, we allow the speculative function that is being called to determine if the
parse was successful or not. Only if it decides it was not successful is parsing rewound.
This improves our error recovery in several cases (esp. around arrow functions). it will also
help in a followup refactoring to prevent lookahead/speculative parsing from causing lambda
allocations.
2014-12-04 08:53:45 -08:00
Cyrus Najmabadi
4db419d93c
more baselines. revert unintentional change to harness.ts.
2014-12-03 22:14:55 -08:00
Cyrus Najmabadi
e6d1e39fb7
Add more coverage tests.
2014-12-03 21:07:50 -08:00
Cyrus Najmabadi
66c1b3df20
Add grammar walker test coverage cases.
2014-12-03 20:41:39 -08:00
Cyrus Najmabadi
c735ccc46d
Merge branch 'master' into propertyAssignments
2014-12-03 19:33:33 -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
Daniel Rosenwasser
0e9561194b
Added tests.
2014-12-03 15:05:38 -08:00
Daniel Rosenwasser
d4575572b6
parenetName -> parentName
2014-12-03 14:58:15 -08:00
Daniel Rosenwasser
dfad03a35c
Normalized line endings for test.
2014-12-03 14:56:02 -08:00
Sheetal Nandi
1939c7f2cd
Fix the getSymbolInfo and getTypeOfNode entry points to resolve the context sensitive information before resolving the actual node
2014-12-03 14:47:13 -08:00
Sheetal Nandi
c40e0f6738
Fixes the quickInfo when hovering over var inside the context sensitive expression
...
Handles #1165
2014-12-03 14:00:58 -08:00
Sheetal Nandi
1551c0a466
Merge pull request #889 from Microsoft/SymbolDisplayParkKindTests
...
Symbol display part kind test cases
2014-12-03 13:21:53 -08:00
Sheetal Nandi
c4f4e787cf
Add test cases for external module reference of the alias
2014-12-03 12:41:32 -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
d5ef6226da
Emit FunctionPropertyAssignments in their native form when emitting in ES6 mode.
2014-12-03 02:09:15 -08:00
Cyrus Najmabadi
44f30c8ba9
Remove baseline-hacks from the typewriter.
2014-12-03 01:55:22 -08:00
Cyrus Najmabadi
0900005438
Don't rewrite function property assignments in the AST.
2014-12-03 01:46:04 -08:00
Mohamed Hegazy
d9b3d21cba
Merge branch 'master' into getOccurancesAssert
2014-12-02 20:16:50 -08:00
Cyrus Najmabadi
f520129e2c
Simplify arrow function expression parsing.
...
Reduce allocations by avoiding the need for a superfluous 'ParsedSignature'.
2014-12-02 19:04:51 -08:00
Anders Hejlsberg
65d1510769
Adding rudimentary tests
2014-12-02 16:23:37 -08:00
Cyrus Najmabadi
5a7500ca5e
Add a dedicated 'EndOfFile' token to a SourceFile.
...
This is important for incremental parsing, as it is where we can attach parse errors at the end of
the file to. Also, it helps with things like emitting comments at the end of the file.
2014-12-02 16:09:41 -08:00
Anders Hejlsberg
ecfcb9dded
Fixing fourslash test
2014-12-02 16:01:32 -08:00
Anders Hejlsberg
dc39de19e8
Removing fourslash test that no longer applies
2014-12-02 15:53:13 -08:00
Vladimir Matveev
76e8560b0e
fix crash in signature help
2014-12-02 15:04:44 -08:00
Cyrus Najmabadi
ec17f369a2
Find imported external modules that start with double underscores.
2014-12-02 14:14:57 -08:00
Cyrus Najmabadi
a6a7e81de2
Add failing test.
2014-12-02 14:05:35 -08:00
Daniel Rosenwasser
4c4e5a43e0
Added multiline tests.
2014-12-02 13:54:10 -08:00
Mohamed Hegazy
cf1f6406bb
Merge pull request #1332 from Microsoft/getEmitOutputCleanup
...
Ensure getEmitOutput only check the file requested
2014-12-02 13:21:13 -08:00
Anders Hejlsberg
ab35da9b87
Baseline changes from updating rest parameter emit to use new temporary names
2014-12-02 11:49:28 -08:00
Sheetal Nandi
8c116e5f34
Merge branch 'master' into SymbolDisplayParkKindTests
2014-12-02 08:47:15 -08:00
Sheetal Nandi
8b078c2734
baseline change conflict not caught during github merge
2014-12-02 08:46:33 -08:00
Sheetal Nandi
802f11349f
Merge pull request #1056 from Microsoft/unionTypeConformance
...
Union type conformance
2014-12-02 08:02:34 -08:00
Mohamed Hegazy
a9714257cc
Handel modifier const in getOccurrances
2014-12-01 23:46:09 -08:00
Cyrus Najmabadi
03a2d0197b
Make 'CatchClause' have-a block, instead of be-a block.
2014-12-01 23:21:27 -08:00
Mohamed Hegazy
08165c0b17
Ensure getEmitOutput only check the file requested
2014-12-01 23:15:13 -08:00
Cyrus Najmabadi
db89584a86
Put semantically relevant tokens in the tree.
2014-12-01 22:03:41 -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
Vladimir Matveev
852d14e593
Merge pull request #1324 from Microsoft/indent_new_expressions_noargs
...
handle cases when new expression is used with no arguments
2014-12-01 17:32:19 -08:00
Daniel Rosenwasser
ddb3ca0f48
Augment escapeString to fix downlevel template literal emit.
2014-12-01 17:27:11 -08:00
Vladimir Matveev
ad95cc8d47
handle cases when new expression is used with no arguments
2014-12-01 17:18:50 -08:00
Mohamed Hegazy
4e79458e69
Merge branch 'master' into es6typings
...
Conflicts:
tests/baselines/reference/constDeclarationShadowedByVarDeclaration3.types
2014-12-01 16:51:10 -08:00
Mohamed Hegazy
203e46c335
Merge pull request #1317 from vvakame/addMissingPrototypeProperty
...
Add missing prototype properties
2014-12-01 16:38:37 -08:00
Cyrus Najmabadi
d730e5ca55
Remove 'missing' syntax kind.
2014-12-01 16:17:04 -08:00
Vladimir Matveev
10702797d9
Merge pull request #1321 from Microsoft/fix_token_meaning_in_formatting
...
take token kind from the tree in case if token kind from scanner is diff...
2014-12-01 15:50:43 -08:00
Mohamed Hegazy
170014c3da
Merge pull request #1312 from Microsoft/isDeclarationVisibleAssert
...
Handle assert for missing node kind in isDeclarationVisible for functionType and constructorType
2014-12-01 14:30:25 -08:00
Vladimir Matveev
7358b0f7d3
take token kind from the tree in case if token kind from scanner is different
2014-12-01 13:29:49 -08:00
Mohamed Hegazy
199b71c2ce
Merge branch 'master' into es6Typings
2014-12-01 13:22:20 -08:00
Mohamed Hegazy
0f6574e7e6
Add test for getters and setters
2014-12-01 13:20:56 -08:00
Mohamed Hegazy
da588aa4bc
Merge branch 'master' into isDeclarationVisibleAssert
...
Conflicts:
src/compiler/checker.ts
2014-12-01 13:19:12 -08:00
Daniel Rosenwasser
9da7287eaa
Merge pull request #1275 from Microsoft/unterminator
...
Keep track of unterminated literal expressions.
2014-12-01 12:57:33 -08:00
Yui T
7ec49fd80e
Merge branch 'master' into binaryIntegerLiteral
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/emitter.ts
tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
2014-12-01 11:22:37 -08:00
Yui T
847eb097cb
Add baseline
2014-12-01 10:52:49 -08:00
vvakame
bf731646ec
Add missing prototype properties
2014-12-01 21:32:35 +09:00
Cyrus Najmabadi
1600b38760
Don't explicitly call 'error' when parsing a type.
2014-12-01 03:15:51 -08:00
Cyrus Najmabadi
ada6cebef3
Don't parse nodes, only to not include them in the tree. This will break incremental parsing scenarios.
...
Properly store the data for an external module reference in the AST.
2014-12-01 03:00:27 -08:00
Cyrus Najmabadi
94febee138
Don't create errors directly when parsing template spans.
2014-12-01 00:52:52 -08:00
Cyrus Najmabadi
f91996a80c
Don't report an error directly when parsing a function body.
2014-12-01 00:31:31 -08:00
Sheetal Nandi
7edd253307
Tests for external alias
2014-12-01 00:26:26 -08:00
Sheetal Nandi
7108215da8
tests for internal alias
2014-12-01 00:17:26 -08:00
Sheetal Nandi
136a8a725a
Tests for external modules
2014-12-01 00:04:28 -08:00
Mohamed Hegazy
fde249d6a8
Handle TypeReference nodes
2014-11-30 23:54:21 -08:00
Sheetal Nandi
948fc209a0
Tests for modules
2014-11-30 23:51:38 -08:00
Sheetal Nandi
f7e7dc7101
Tests for const
2014-11-30 23:21:30 -08:00
Sheetal Nandi
62e9f082d6
Tests and fix symbol display for let
2014-11-30 23:16:22 -08:00
Sheetal Nandi
f2605e0c08
Tests for var
2014-11-30 23:02:56 -08:00
Cyrus Najmabadi
ebe8711a21
Better error recover when there is an unterminated expression before a declaration.
2014-11-30 22:28:17 -08:00
Cyrus Najmabadi
16e28156e5
Support arbitrary numbers of implements and extends clauses (with arbitrary numbers of types) for classes and interfaces.
...
This vastly improves our error tolerance and messages for when the user writes an illegal heritage clause sequence.
2014-11-30 15:38:45 -08:00
Mohamed Hegazy
0246daec83
Handel TypeLiterals, ParenTypes, UnionTypes, and ArrayTypes
2014-11-30 11:47:41 -08:00
Mohamed Hegazy
9ed27b23ab
Handel assert for missing node kind in isDeclarationVisible for functionType and constructorType
2014-11-30 11:04:15 -08:00
Yui T
db51fbd65c
Add check and testcases for invalid binary digits and octal digits
2014-11-29 17:03:38 -08:00
Cyrus Najmabadi
13f319b6ec
Add a lot of clarifying comments in the parser.
...
Simplify parser and avoid the need to pass around 'inNewExpression' information.
Make error span smaller for "new Foo[]" errors.
2014-11-29 14:51:25 -08:00
CyrusNajmabadi
be50b62a2c
Merge pull request #1300 from Microsoft/letConstTests
...
Add parser tests for let/const.
2014-11-28 18:50:55 -08:00
Anders Hejlsberg
501a3704f9
Accepting new baselines
2014-11-28 18:33:37 -08:00
Cyrus Najmabadi
29ced53a4d
Add parser tests for let/const.
2014-11-28 14:50:58 -08:00
Anders Hejlsberg
98eaca541a
Accepting new baselines
2014-11-28 10:06:43 -08:00
Vladimir Matveev
cca6eeaf99
new lines that were added\removed by rules must always be honores even if they doesn't trigger recomputation of indentation
2014-11-27 19:03:50 -08:00
Mohamed Hegazy
cc270c72ec
Add the test262 helper file
2014-11-27 13:06:06 -08:00
Mohamed Hegazy
507ec3db3f
Merge branch 'master' into es6Typings
2014-11-27 10:00:32 -08:00
Mohamed Hegazy
d3e70ecfbf
Merge branch 'master' into es6typings
...
Conflicts:
src/compiler/parser.ts
src/compiler/tsc.ts
src/harness/harness.ts
src/harness/projectsRunner.ts
tests/baselines/reference/templateStringsArrayTypeDefinedInES5Mode.errors.txt
2014-11-27 09:59:46 -08:00
Jason Freeman
ddebd02828
Accept type baselines (will verify when computed properties are typechecked)
2014-11-26 20:15:36 -08:00
Jason Freeman
02dc56946e
Merge branch 'master' into computedProperties
2014-11-26 20:12:04 -08:00
Jason Freeman
1a8816f459
Address feedback
2014-11-26 20:10:49 -08:00
Daniel Rosenwasser
ae384470a4
Tests for terminated/unterminated template strings.
2014-11-26 17:14:08 -08:00
Daniel Rosenwasser
0c348d28d5
Confused count with index.
2014-11-26 17:00:44 -08:00
Daniel Rosenwasser
cef5062791
Fixed issue where classifier didn't check for backslash-newline.
2014-11-26 16:32:30 -08:00
Vladimir Matveev
eda4b1bea0
handle regexes correctly in formatting
2014-11-26 00:29:20 -08:00
Daniel Rosenwasser
faf3413c40
Merge pull request #1098 from Microsoft/getOccsForModifiers
...
Support getOccurrences for modifier keywords.
2014-11-25 19:44:55 -08:00
Jason Freeman
480883b227
Skip computed properties in the nav bar
2014-11-25 16:09:10 -08:00
Jason Freeman
d43ed2f10e
Fix merge issues
2014-11-25 16:09:07 -08:00
Jason Freeman
f6266fc99e
Checker refactor for FunctionLike and VariableOrProperty
2014-11-25 16:09:05 -08:00
Jason Freeman
2bc1f4f4fa
Update error codes
2014-11-25 16:09:03 -08:00
Jason Freeman
98eda2bf5c
Syntax error for computed properties on method overloads
2014-11-25 16:09:00 -08:00
Jason Freeman
0e864143de
Emit tests for computed properties
2014-11-25 16:08:58 -08:00
Jason Freeman
cf4f34c224
Add parser tests for computed properties
2014-11-25 16:08:53 -08:00
Daniel Rosenwasser
d373dc8a99
Merge branch 'master' into getOccsForModifiers
2014-11-25 15:03:28 -08:00
Daniel Rosenwasser
3e1b6b896c
Merge pull request #657 from Microsoft/conformanceTests-624
...
Conformance Tests for Spec Change in PR#624
2014-11-25 14:32:27 -08:00
Daniel Rosenwasser
c8bb487645
Merge branch 'master' into conformanceTests-624
...
Conflicts:
tests/baselines/reference/parameterInitializersForwardReferencing.errors.txt
2014-11-25 14:18:17 -08:00
Cyrus Najmabadi
d37368e39f
Report error on asterisk token.
2014-11-25 13:54:26 -08:00
Cyrus Najmabadi
5b539f0636
Report errors for using yield/generators right now.
2014-11-25 12:16:31 -08:00
CyrusNajmabadi
af4a12151c
Merge pull request #1261 from Microsoft/contextFlags
...
Use a separate field on a node to specify parser context flags.
2014-11-25 01:38:51 -08:00
Cyrus Najmabadi
3b253e9a4a
Add an _es6 suffix to prevent name collisions.
2014-11-24 22:53:55 -08:00
Cyrus Najmabadi
d11eabc81b
Add test baselines.
2014-11-24 22:45:33 -08:00
Cyrus Najmabadi
78cd1b5f7e
Parser tests for generators and yield expressions.
2014-11-24 22:40:54 -08:00
Yui T
169bc219f2
Merge branch 'binaryIntegerLiteral' of https://github.com/Microsoft/TypeScript into binaryIntegerLiteral
2014-11-24 18:38:03 -08:00
Yui T
30d58dd220
Address code review
2014-11-24 18:36:07 -08:00
Daniel Rosenwasser
ad39bdfb01
Merge branch 'master' into taggedSigHelp
...
Conflicts:
src/services/signatureHelp.ts
2014-11-24 16:34:00 -08:00
Yui T
a580040863
Address code review
2014-11-24 14:36:05 -08:00
Yui T
5774e64d92
Add test cases
2014-11-23 18:05:21 -08:00