Commit graph

289 commits

Author SHA1 Message Date
Daniel Rosenwasser ee86f8b711 Harness now prints category and code when running tests. 2014-09-11 16:11:08 -07:00
Jason Freeman fad5650be6 Fix the error spans issue 2014-09-10 17:57:51 -07:00
Anders Hejlsberg bf084f159d Merge pull request #640 from Microsoft/contextualSignatureInstantiation
Fix contextual signature instantiation during type inference
2014-09-09 18:46:42 -07:00
Sheetal Nandi 163674d07c Merge pull request #638 from Microsoft/qualificationOfMethods
Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
2014-09-09 16:21:41 -07:00
Anders Hejlsberg 2b58a239d1 Accepting new baselines 2014-09-09 15:23:24 -07:00
Anders Hejlsberg e2c3b50ed1 Merge branch 'master' into truncateTypesInErrors
Conflicts:
	src/compiler/checker.ts
2014-09-09 13:51:08 -07:00
Sheetal Nandi 840481da3b Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
Fixes #604
2014-09-09 12:45:10 -07:00
Anders Hejlsberg aa58dcbee0 Adding noErrorTruncation compiler option 2014-09-09 12:25:03 -07:00
Mohamed Hegazy 6fee404152 Merge pull request #602 from Microsoft/noImplicitAnyOnCast
Do not show noImplictAny errors when widening for a cast expression
2014-09-08 17:28:49 -07:00
Anders Hejlsberg 9f3d83adeb Truncate long types in error messages 2014-09-08 16:14:43 -07:00
Jason Freeman 5d299d4e5f Merge branch 'master' into specConformanceTests 2014-09-08 13:55:22 -07:00
Mohamed Hegazy 4f21fb59a2 fix typo 2014-09-08 12:08:15 -07:00
Mohamed Hegazy 06888e86f9 Merge branch 'master' into noImplicitAnyOnCast
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/arrayCast.errors.txt
	tests/baselines/reference/contextualTyping39.errors.txt
	tests/baselines/reference/contextualTyping41.errors.txt
	tests/baselines/reference/fuzzy.errors.txt
	tests/baselines/reference/genericTypeAssertions2.errors.txt
	tests/baselines/reference/genericTypeAssertions4.errors.txt
	tests/baselines/reference/genericTypeAssertions5.errors.txt
	tests/baselines/reference/intTypeCheck.errors.txt
	tests/baselines/reference/typeAssertions.errors.txt
2014-09-08 10:23:37 -07:00
Anders Hejlsberg 59889d871d Corrected codegen to support shadowed module names. 2014-09-06 17:40:19 -07:00
Jason Freeman 6fb3c34681 Conformance coverage for spec change #589 2014-09-05 18:44:49 -07:00
Anders Hejlsberg 8e7be9ad98 Properly report errors for failed type assertions 2014-09-05 17:09:00 -07:00
Mohamed Hegazy dd3bb9cc69 Merge branch 'master' into noImplicitAnyOnCast 2014-09-05 16:46:41 -07:00
Mohamed Hegazy 3b6afb8499 respond to code review remarks 2014-09-05 16:41:37 -07:00
Anders Hejlsberg e157763d6c Merge pull request #610 from Microsoft/circularFunctionExpressions
Circular function expressions
2014-09-05 15:43:44 -07:00
Mohamed Hegazy 901c72808d Merge branch 'master' into emitDeclarationWithNoResolve 2014-09-05 13:07:14 -07:00
Anders Hejlsberg 314a0d6cf0 Accepting new baselines. 2014-09-05 13:05:36 -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
Mohamed Hegazy 05ebe9c214 add negative test for invalid references and declaration emit 2014-09-04 14:41:11 -07:00
Mohamed Hegazy 5422e56d48 Do not show noImplictAny errors when widening for a cast expression 2014-09-04 14:25:12 -07:00
Sheetal Nandi f582902ec0 Merge pull request #569 from Microsoft/collisions
Report error if exports or require is used for declaration name in external module
2014-09-04 13:44:43 -07:00
Mohamed Hegazy acf557dd3c Do not emit references in generated declaration files if the --noresolve flag was set. This fixes a crash in the compiler when generating declarations with /// reference and noResolve 2014-09-04 13:16:22 -07:00
Sheetal Nandi 7b45cdf9b3 Negative test cases for collision of export and require declaration names 2014-09-04 13:00:59 -07:00
Sheetal Nandi 3cc4b73858 Merge pull request #570 from Microsoft/linemaps
Handles all the line breaks in calculation of line-character position
2014-09-04 09:53:06 -07:00
Anders Hejlsberg be08411a6c Merge branch 'master' into deferredTypeLiterals 2014-09-03 10:53:21 -07:00
Anders Hejlsberg 2105404931 Merge branch 'master' into deferredTypeLiterals 2014-08-30 16:14:11 -07:00
Sheetal Nandi 816b018ae2 Fix the tab and indent calculation when formatting comments in the emitted output 2014-08-29 20:49:47 -07:00
Sheetal Nandi a87a7794f4 Report error if exports or require is used for declaration name in external module
Fixes #63
2014-08-29 18:45:38 -07:00
Sheetal Nandi c2b78ead05 Handles all the line breaks in calculation of line-character position
lineFeed = 0x0A,              // \n
        carriageReturn = 0x0D,        // \r
        lineSeparator = 0x2028,
        paragraphSeparator = 0x2029,
        nextLine = 0x0085,

Fixes #131
2014-08-29 17:27:47 -07:00
Sheetal Nandi b514fa58a9 Merge pull request #514 from Microsoft/overloadSignatureDeclaration
Correct the declaration emit for overload implementation if there is single overload signature
2014-08-29 14:33:53 -07:00
Jason Freeman ae59368836 Update baselines 2014-08-28 17:30:56 -07:00
Jason Freeman ad27af1a33 Merge branch 'master' into typeBaselines 2014-08-28 17:24:45 -07:00
Jason Freeman 088ca88bfd Revert condition inside shouldWriteTypeOfFunctionSymbol 2014-08-28 13:18:59 -07:00
Jason Freeman 44c2453ec6 Don't use UseTypeOfFunction in typeWriter 2014-08-28 12:52:44 -07:00
Jason Freeman 46825ab05d Print Array as T[] 2014-08-28 12:48:30 -07:00
Jason Freeman 6a7d912fe4 Print pure namespaces as unknown 2014-08-28 12:40:58 -07:00
Jason Freeman 4e1bb26ad1 Print type of super 2014-08-28 12:31:37 -07:00
Sheetal Nandi 852f2d935c Merge pull request #516 from Microsoft/pinnedComments
Emit pinned or ///<reference> tag comments for signatures, ambient declaraitons and interfaces
2014-08-28 10:51:29 -07:00
Jason Freeman 3388f7bd48 Update baselines 2014-08-27 16:58:31 -07:00
Jason Freeman b13fb89d51 Merge branch 'master' into typeBaselines 2014-08-27 11:22:49 -07:00
Jason Freeman aa0ae22b37 Update baselines 2014-08-27 10:06:16 -07:00
Anders Hejlsberg f4d3c1c6e0 Deferred resolution of object literal members to support recursive types. 2014-08-26 20:45:31 -07:00
Mohamed Hegazy 211008d015 Fix undefined symbol name in error message 2014-08-26 13:03:24 -07:00
Jason Freeman f93f78d1c2 Adjust baselines after rebase 2014-08-25 11:25:39 -07:00
Jason Freeman 828a1cd065 More type baseline changes 2014-08-25 11:04:30 -07:00
Jason Freeman cc20bb19d0 Baseline and harness changes 2014-08-25 10:55:22 -07:00