Commit graph

32038 commits

Author SHA1 Message Date
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 cb98c5aa17 Merge pull request #215 from Microsoft/labelledStatements
Parser analysis and errors for labelled statements, break, continue, return
2014-07-24 17:52:39 -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
Jason Freeman a19698c37d Address feedback 2014-07-24 17:38:37 -07:00
Dan Quirk 98e65f2528 Fix token once more 2014-07-24 17:22:16 -07:00
Vladimir Matveev 8d523f9a28 merged with upstream 2014-07-24 17:18:17 -07:00
Dan Quirk 0c2b04fc8b Trying different after_script command for code climate 2014-07-24 17:11:33 -07:00
Dan Quirk 89333eb4b8 Fix Code Climate token again 2014-07-24 17:04:18 -07:00
Vladimir Matveev bb193fedb9 augment check for colliding declaration spaces 2014-07-24 17:03:37 -07:00
Vladimir Matveev d7f67083b2 check groups of local symbols 2014-07-24 17:03:33 -07:00
Anders Hejlsberg a515b199b7 Better error messages in function calls.
Fixes #93.
This is an evolution of #220.
2014-07-24 17:00:03 -07:00
Dan Quirk d81c884fef Use dot reporter for code coverage so it doesn't overflow Travis-CI's log limit 2014-07-24 16:20:13 -07:00
Dan Quirk 80ce0a9cdc Fix Code Climate token 2014-07-24 16:18:33 -07:00
Dan Quirk 0af149e1fc Turn on Code Climate integration 2014-07-24 16:04:39 -07:00
Dan Quirk d91c59bd29 Fix minor formatting issues 2014-07-24 16:04:37 -07:00
Vladimir Matveev a490eb29f3 Merge pull request #217 from Microsoft/strict_mode
Strict mode support
2014-07-24 13:15:49 -07:00
Vladimir Matveev 4c70d738dd Merge remote-tracking branch 'origin/strict_mode' into strict_mode 2014-07-24 13:11:34 -07:00
Vladimir Matveev 7072711cf9 updated test baselines 2014-07-24 13:09:03 -07:00
Vladimir Matveev 48ff93963b added comments 2014-07-24 13:02:37 -07:00
Vladimir Matveev 6572c826a1 update check for object literal properties according to ECMA spec 2014-07-24 13:02:31 -07:00
Vladimir Matveev 9112a0e2e2 enabled strict mode 2014-07-24 13:01:25 -07:00
Jason Freeman fde2591d6f Add interface LabelledStatementInfo 2014-07-24 12:56:03 -07:00
Vladimir Matveev c369e25cbe added comments 2014-07-24 12:49:54 -07:00
Jason Freeman 742637bec9 Add tracking for labelled statements, and errors on labelled jumps 2014-07-24 12:36:10 -07:00
Adam Freidin b6cf356373 fix node_module path in Jakefile (mac too) 2014-07-24 11:22:59 -04:00
Max Deepfield 2044fb0655 missing semicolon fix 2014-07-24 14:53:42 +03:00
Dan Quirk 64ab02ec43 Make sure we delete projects tests baselines on errors in jake 2014-07-23 17:33:28 -07:00
Dan Quirk 71336fca59 Add error handler to better debug issues when jake launches external processes like mocha 2014-07-23 17:27:30 -07:00
Dan Quirk 439ee1eaee Merge pull request #223 from Microsoft/linuxTestFixes
Linux test fixes
2014-07-23 17:22:47 -07:00
Dan Quirk 5d85421262 More cleanup 2014-07-23 17:14:17 -07:00
Dan Quirk ef2ffc6d78 Cleanup 2014-07-23 17:10:38 -07:00
Vladimir Matveev ddfd0fe074 update check for object literal properties according to ECMA spec 2014-07-23 17:05:36 -07:00
Jason Freeman b9971f2876 Add consumption points and error reporting for labelled statement errors 2014-07-23 16:48:18 -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
Vladimir Matveev 259f8a2091 enabled strict mode 2014-07-23 14:30:43 -07:00
Jason Freeman 1a66243d4f Remove inModuleBody 2014-07-23 14:09:17 -07:00
Daniel Rosenwasser 57d7cf54c6 Improved "certainty" when parsing arrow-function-lookin' expressions. 2014-07-23 13:31:24 -07:00
Jason Freeman 76804eb1f9 Add errors for break and continue statements 2014-07-23 12:07:46 -07:00
Jason Freeman e2617750b1 Track control flow contexts in the parser, and give errors for break, continue, return 2014-07-23 11:57:34 -07:00
Jason Freeman bc26d480f7 Merge pull request #176 from Microsoft/errorOnWithStatement
Give a semantic error on with statements
2014-07-23 11:55:58 -07:00
Jason Freeman 29284cb1b9 Merge branch 'master' into errorOnWithStatement 2014-07-23 11:53:58 -07:00
Jason Freeman ed3d740df4 Merge branch 'master' into errorOnWithStatement 2014-07-23 11:52:40 -07:00
Daniel Rosenwasser 5fc2792297 Covered more cases for arrow functions omitting arrows.
Specifically where we have a full signature followed by an open curly brace.
2014-07-23 11:49:51 -07:00
Vladimir Matveev d10f2e713e do not propagate property name as name for function expression 2014-07-23 11:48:29 -07:00
Anders Hejlsberg 1c594d06a2 Addressing CR feedback.
Making allowReservedWords parameter of parseEntityName non-optional.
2014-07-23 10:17:39 -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 329be5f77b Make a test that explicitly sets newline type 2014-07-23 15:56:50 -07:00
Dan Quirk ec9d25f980 Trying to fix newlines in sourcemap baselines for *nix 2014-07-23 15:51:03 -07:00