Vladimir Matveev
c0b3efbbb4
emit this capturing as a first action in the constructor
2014-08-01 11:16:09 -07:00
Mohamed Hegazy
61436368b5
Merge branch 'master' into ls
2014-07-31 18:43:53 -07:00
Daniel Rosenwasser
3ba4ad55c0
Merge pull request #320 from Microsoft/slashInCharClass
...
Fixed error when parsing slashes in RegExp literals.
2014-07-31 14:33:58 -07:00
Vladimir Matveev
fee596b2d5
added test for skipped node case
2014-07-31 12:01:46 -07:00
Daniel Rosenwasser
35803db2e6
Fixed error when parsing slashes in RegExp literals.
...
Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`.
Fixes issue #318 .
2014-07-31 00:36:50 -07:00
Daniel Rosenwasser
ef5ae6e969
Merge pull request #273 from Microsoft/es3HatesTrailingCommas
...
No longer emit trailing comma on object literals for ES3.
2014-07-29 16:31:17 -07:00
Daniel Rosenwasser
c5349dc95f
Accept object literal commas in ES3, preserve in ES5.
2014-07-29 16:25:10 -07:00
Mohamed Hegazy
990669972a
update error positions after rebase
2014-07-29 15:28:25 -07:00
Mohamed Hegazy
648af3801a
react to changes after rebase
2014-07-29 12:35:26 -07:00
Mohamed Hegazy
4ad7452a58
Enable passing fourslash tests
2014-07-29 12:17:44 -07:00
Mohamed Hegazy
85393abfd9
enable formatting tests
2014-07-29 12:17:23 -07:00
Mohamed Hegazy
d4ba45cb36
move failing tests to old
2014-07-29 12:17:03 -07:00
Mohamed Hegazy
c6c77ea989
move todoComment tests to old for now
2014-07-29 12:16:53 -07:00
Vladimir Matveev
df3567c7db
Merge pull request #197 from Microsoft/locals_exports
...
Alternative proposal for grouping exported and local declarations
2014-07-28 11:26:08 -07:00
Vladimir Matveev
e4256d827d
Merge pull request #252 from Microsoft/array_symbol_links
...
Use symbol links to access global array type
2014-07-25 17:12:14 -07:00
Jason Freeman
9e039f53b5
Merge pull request #259 from Microsoft/canParseSemicolon
...
Remove isSemicolon
2014-07-25 17:09:08 -07:00
Jason Freeman
478fadfe3d
Disallow modifiers on export assignments ( fix #164 )
2014-07-25 16:39:24 -07:00
Jason Freeman
61731eefdf
Remove isSemicolon ( fix #200 )
2014-07-25 16:17:30 -07:00
Vladimir Matveev
442ad4b032
use symbol links to access global array type
2014-07-25 12:06:18 -07:00
Vladimir Matveev
42df260eb5
use getEffectiveDeclarationFlags to get Export flag
2014-07-25 11:15:19 -07:00
Daniel Rosenwasser
c625cd9259
Merge pull request #203 from Microsoft/arrowLookAhead
...
Improved lookahead for arrow functions.
2014-07-24 18:41:34 -07:00
Daniel Rosenwasser
b0c59e7c37
Merge branch 'master' into arrowLookAhead
2014-07-24 18:17:30 -07:00
Daniel Rosenwasser
b76c13cfd5
Addressed code review feedback.
2014-07-24 18:05:05 -07:00
Jason Freeman
86007cc137
Merge branch 'master' into labelledStatements
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/parser.ts
2014-07-24 17:48:11 -07:00
Vladimir Matveev
bb193fedb9
augment check for colliding declaration spaces
2014-07-24 17:03:37 -07:00
Vladimir Matveev
9112a0e2e2
enabled strict mode
2014-07-24 13:01:25 -07:00
Jason Freeman
742637bec9
Add tracking for labelled statements, and errors on labelled jumps
2014-07-24 12:36:10 -07:00
Dan Quirk
439ee1eaee
Merge pull request #223 from Microsoft/linuxTestFixes
...
Linux test fixes
2014-07-23 17:22:47 -07:00
Anders Hejlsberg
e742694b1a
Merge pull request #199 from Microsoft/reservedWordsInTypeQueries
...
Allow reserved words in type queries.
2014-07-23 15:52:09 -07:00
Jason Freeman
76804eb1f9
Add errors for break and continue statements
2014-07-23 12:07:46 -07:00
Dan Quirk
3ad77c6ea0
Be less clever, just use \r\n for newlines by default, tests can opt into different newlines, fix one more file casing test
2014-07-23 03:27:56 -07:00
Dan Quirk
ec9d25f980
Trying to fix newlines in sourcemap baselines for *nix
2014-07-23 15:51:03 -07:00
Daniel Rosenwasser
5b6bb5b649
Improved lookahead for arrow functions.
...
Fixes issue #34 .
Specifically:
* We no longer automatically assume "()" is a function expression. It must be followed by an arrow, colon, or curly brace.
* If an arrow is missing following a signature, but a curly brace is present, we assume the user forgot the arrow and try to parse the body anyway.
2014-07-22 17:01:10 -07:00
Anders Hejlsberg
0550b93635
Allow reserved words in type queries.
...
Fixes #181 .
2014-07-22 15:11:24 -07:00
Daniel Rosenwasser
c8fc26a20a
Merge pull request #147 from Microsoft/noReturnExpression
...
Complain when a non-void function lacks a return expresson.
2014-07-22 13:46:54 -07:00
Anders Hejlsberg
c5db1614f6
Aligning index signature type inference with assignability rules.
...
Type inference now supports inferring from string index signatures to numeric index signatures.
Fixes #167 .
2014-07-22 11:53:06 -07:00
Anders Hejlsberg
13d64adeb9
Merge pull request #175 from Microsoft/contextualSignatureInstantiation
...
Added contextual signature instantiation during type inference.
2014-07-22 10:57:01 -07:00
Anders Hejlsberg
d85df9e9fa
Addressing CR feedback.
...
Adding comment to explain source type instantiation.
Adding a test case.
2014-07-22 10:54:20 -07:00
Daniel Rosenwasser
1728f7c654
Changed check on annotated functions/getters to only look for return statements.
2014-07-21 16:42:46 -07:00
Daniel Rosenwasser
fa04d4d699
Changed error spans for duplicate default clauses, added tests for it.
2014-07-21 15:57:30 -07:00
Daniel Rosenwasser
4ac676f718
Added checking for switch statements with multiple default clauses.
2014-07-21 15:19:54 -07:00
Daniel Rosenwasser
819ea95953
Better error recovery for when an arrow function is missing a curly brace.
...
Also better identification of arrow function expressions.
2014-07-18 16:55:18 -07:00
Vladimir Matveev
52ab9f110e
added new strict mode test
2014-07-17 18:32:26 -07:00
Vladimir Matveev
f1ce09caa3
do not propagate function name in property accessors
2014-07-17 14:18:24 -07:00
Sheetal Nandi
fe1fea3710
Merge pull request #30 from Microsoft/declarations
...
Changes to determine when to qualify the symbol in given enclosing declaration
2014-07-16 15:20:00 -07:00
Daniel Rosenwasser
cece68098a
Better error recovery when errant semicolon found in a class.
2014-07-16 15:06:03 -07:00
Daniel Rosenwasser
9ecf01b57a
When importing, only check for reserved type names when importing a type.
2014-07-16 14:08:15 -07:00
Jason Freeman
2af62a9912
Error for more than one enum omitting an initial initializer
2014-07-16 13:50:08 -07:00
Jason Freeman
17563f3c5d
Remove SymbolLinks.typeChecked
2014-07-16 13:34:27 -07:00
Sheetal Nandi
5a23dd0684
Check if accessible symbol needs futher qualification
2014-07-16 11:30:38 -07:00