Commit graph

65 commits

Author SHA1 Message Date
Ron Buckton 60ae9bd14d Fixes helpers in strict mode 2015-05-01 10:49:54 -07:00
Anders Hejlsberg 330d63a173 Accepting new baselines 2015-04-26 18:31:47 -07:00
Ron Buckton a9e79bf06b Lazy resolution of global decorator types 2015-04-23 11:04:44 -07:00
Mohamed Hegazy 021f309151 Merge branch 'master' into rootDir 2015-04-19 13:25:03 -07:00
Mohamed Hegazy 8964b8e5b6 Merge branch 'master' into rootDir
Conflicts:
	tests/baselines/reference/APISample_compile.types
	tests/baselines/reference/APISample_linter.types
	tests/baselines/reference/APISample_transform.types
	tests/baselines/reference/APISample_watcher.types
2015-04-16 16:52:51 -07:00
Mohamed Hegazy 55af7b36c7 Fix #2801: Sort module names for AMD preamble 2015-04-16 14:56:22 -07:00
Mohamed Hegazy 16bbedcbf9 Add source maps to rootdir tests 2015-04-14 22:27:42 -07:00
Mohamed Hegazy 99c0adbc2a Add rootDir tests 2015-04-14 22:19:59 -07:00
Cyrus Najmabadi ceeeb9cd11 Always preserve new lines for array and object literals and additional constructs like blocks. 2015-03-26 13:46:35 -07:00
Ron Buckton f531193557 Updates to emit and updated baselines 2015-03-24 17:00:29 -07:00
Ron Buckton 0fb624a58b PR feedback 2015-03-19 22:57:03 -07:00
Ron Buckton 6c32a8bdb0 Updated baselines 2015-03-17 14:21:08 -07:00
Cyrus Najmabadi c371f1e521 Make the preservation of formatting an optional experimental compiler flag. 2015-03-08 19:06:55 -07:00
Anders Hejlsberg 5c56684187 Merge branch 'master' into exportDefault
Conflicts:
	tests/baselines/reference/exportAssignDottedName.errors.txt
2015-03-06 17:20:44 -08:00
Bill Ticehurst 0ba3a04c54 Fixed baselines to account for correct path normalization 2015-03-06 13:37:12 -08:00
Anders Hejlsberg daacd8005c Accepting new baselines 2015-03-03 15:27:50 -08:00
Anders Hejlsberg 43af8716d0 Accepting new baselines 2015-03-02 12:21:53 -08:00
Anders Hejlsberg e8cc2bf5f7 Merge branch 'master' into es6Import 2015-02-10 16:17:50 -08:00
Anders Hejlsberg e30fc4142e Accepting new baselines 2015-02-08 12:14:29 -08:00
Cyrus Najmabadi 36b6f4e1b7 Preserve single line blocks when emitting. 2015-02-06 18:45:09 -08:00
Cyrus Najmabadi 337a99f62a Change the API for getting diagnostics so that all calls go through a Program instance. 2015-02-05 01:47:29 -08:00
Cyrus Najmabadi 3cadb3c30c Use a diagnostics collection inside the program instance. 2015-02-04 18:12:13 -08:00
Cyrus Najmabadi 5343336763 Baseline updates now that we no longer have early errors. 2015-02-02 15:15:54 -08:00
Anders Hejlsberg ee6f2faabb Accepting baselines for corrected error messages 2015-01-15 17:19:22 -08:00
Yui T d7f607234a COMPLETE migrating grammar checking; No more errors 2014-12-16 19:30:08 -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
Sheetal Nandi ff23748908 Merge pull request #1131 from Microsoft/relativePathReferenceResolution
Fix the relative path reference resolution
2014-11-20 15:59:06 -08:00
Sheetal Nandi 7d103a1a45 Remove the --noResolve check when finding the file.
--noResolve is only for ///reference and import file resolution to resolve files from disk
but the file identity is always determined before creating duplicate source file for same file paths
2014-11-20 15:43:07 -08:00
Cyrus Najmabadi c005c33244 Better spans for import/export errors. 2014-11-20 14:27:09 -08:00
Cyrus Najmabadi b2112f863a Move module name checks to the grammar checker.
Make some errors shorter.
2014-11-19 16:47:43 -08:00
Sheetal Nandi 264bd5db7c Merge branch 'master' into relativePathReferenceResolution 2014-11-19 13:11:17 -08:00
Sheetal Nandi 6d4e670c18 Enable baseline check and declaration emit for --noResolve case of files 2014-11-19 13:08:57 -08:00
Sheetal Nandi e5b004899c Renamed the tests files to more generic names 2014-11-19 13:06:07 -08:00
Daniel Rosenwasser 828e31b318 Baselines, using 'unknown' as a default type. 2014-11-12 18:08:16 -08:00
Sheetal Nandi 63a20863c1 Fix the relative path reference resolution
Fixes #1039
2014-11-11 23:06:45 -08:00
Sheetal Nandi 8c2091bca5 Add tests to cover scenarios for relative path reference resolution 2014-11-11 23:06:35 -08:00
Daniel Rosenwasser 56027663bf Initial work on overload resolution with tagged templates.
Currently type argument inference breaks hard when the first parameter of a tag has a generic type.
2014-11-04 15:05:05 -08:00
Mohamed Hegazy cffc62aa1b Report duplicate identifier errors on all locations for merged declarations to align with local declarations 2014-10-14 15:18:44 -07:00
ChrisBubernak 1b3da908de fixing baseline 2014-09-26 09:33:06 -07:00
ChrisBubernak 93db897778 Fixed some of the baselines, made file comparisons handle different
casing, put diagnostic message in correct order
2014-09-26 07:47:44 -07:00
Jason Freeman 31eae88b86 Switch to createCompilerDiagnostic for an invalid root file 2014-09-17 10:44:03 -07:00
Daniel Rosenwasser ee86f8b711 Harness now prints category and code when running tests. 2014-09-11 16:11:08 -07:00
Anders Hejlsberg 59889d871d Corrected codegen to support shadowed module names. 2014-09-06 17:40:19 -07:00
Sheetal Nandi 0dc95ceb60 Use double quotes in declaration file's reference path generation so that quotes in file name wouldnt affect reference resolution
Fixes #474
2014-09-04 16:21:56 -07:00
Daniel Rosenwasser 7f4ae93904 Updated error reporting within harness to match that of tsc. 2014-08-22 15:32:40 -07:00
Sheetal Nandi a11ad539c4 Emit copyright headers before anything else in the sourceFile 2014-08-19 10:43:13 -07:00
Sheetal Nandi c4b22d338f Emit comments for expression statements 2014-08-15 15:49:09 -07:00
Sheetal Nandi 3dd21fc3a7 Trailing comment tests for parameters, fixes the trailing // comments and parameter indentation 2014-08-15 13:18:54 -07:00
Sheetal Nandi adc700aba5 Emit space before emitting trailing comments 2014-08-14 16:36:33 -07:00
Sheetal Nandi 0caa1f6dc7 Emit trailing comments 2014-08-14 09:47:50 -07:00