Commit graph

25 commits

Author SHA1 Message Date
Jason Freeman d793658b7f Change Symbol to symbol in error messages 2015-02-06 21:32:16 -08:00
Jason Freeman b30d8f39c2 Change computed property error messages to be about symbols 2015-02-06 21:31:23 -08:00
Jason Freeman de3eb36b2c Update baselines 2015-01-19 16:36:50 -08:00
Yui T d7f607234a COMPLETE migrating grammar checking; No more errors 2014-12-16 19:30:08 -08:00
Yui T fdfd8d4863 Cleaning up migrating grammar checking 2014-12-16 19:11:07 -08:00
Yui T 9ab59a4964 Merge branch 'master' into refactorGrammarCheck
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	src/compiler/types.ts
	tests/baselines/reference/YieldExpression8_es6.errors.txt
	tests/baselines/reference/ambientErrors.errors.txt
	tests/baselines/reference/giant.errors.txt
2014-12-16 17:38:40 -08:00
Cyrus Najmabadi f1a2e41a8a Sort diagnostics in our baseline output.
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.

This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00
Yui T 31e49ed93e Move grammar checking: callSignature, constructorType, ConstructSignature, FunctionType, IndexSignature 2014-12-10 18:39:24 -08:00
Jason Freeman 1a8816f459 Address feedback 2014-11-26 20:10:49 -08:00
Jason Freeman 2bc1f4f4fa Update error codes 2014-11-25 16:09:03 -08:00
Jason Freeman cf4f34c224 Add parser tests for computed properties 2014-11-25 16:08:53 -08:00
Cyrus Najmabadi c7c1d6b03b Remove unnecessary state from the parser. 2014-11-19 22:15:32 -08:00
Vladimir Matveev 4fb489e64b move checking modifiers out of parser 2014-11-19 19:22:39 -08:00
Cyrus Najmabadi 67afd6d570 Move ambient function block checks to the grammar checker. 2014-11-19 14:01:03 -08:00
Cyrus Najmabadi 8b832a5713 Move ambient statement checks to the grammar checker. 2014-11-19 13:26:15 -08:00
Cyrus Najmabadi 30ba527177 Move accessor grammar errors to the grammar checker. 2014-11-18 21:29:07 -08:00
Cyrus Najmabadi 2961d23078 Skip error checks on node if any children produced errors. 2014-11-18 18:44:53 -08:00
Cyrus Najmabadi 34bb53f54c Use the entire indexer node for grammar error reporting. 2014-11-18 18:20:41 -08:00
Yui T 296e8e01b3 Update Baselines 2014-10-01 11:27:20 -07:00
Yui T c2d86711e8 Update baselines 2014-09-30 18:09:55 -07:00
Daniel Rosenwasser 9f7782d392 Added error 'prologue' to each error baseline. 2014-09-12 13:35:07 -07:00
Daniel Rosenwasser ee86f8b711 Harness now prints category and code when running tests. 2014-09-11 16:11:08 -07:00
Daniel Rosenwasser fc80c300a0 Gracefully handle accessor declarations in ambient classes. 2014-07-25 13:21:55 -07:00
Daniel Rosenwasser d33127ad34 Complain when a non-void/any function lacks a return expresson.
In effect this fixes #62.

Also
    - Changes the error message for get accessors lacking return expressions.
    - Actually checks for return expressions instead of return statements for get-accessors.
    - Removes fancy quotes.
    - Corrects errors in the compiler caught by the new check.
    - Simplified `checkAndAggregateReturnTypes` by extracting it out to `visitReturnStatements`.
2014-07-21 16:42:41 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00