274 Commits

Author SHA1 Message Date
Jason Freeman
5d299d4e5f Merge branch 'master' into specConformanceTests 2014-09-08 13:55:22 -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
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
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
Daniel Rosenwasser
b73558d208 Merge pull request #508 from Microsoft/printDiagnosticCodes
Emit error codes when reporting diagnostics.
2014-08-22 16:21:44 -07:00
Sheetal Nandi
c4fdccacb8 Emit pinned/tripleslash reference comments of elided module declaration
Fixes #501
2014-08-22 16:10:33 -07:00
Sheetal Nandi
5353128387 Emit pinned/tripleslash reference comments of ambient declarations
Fixes #501
2014-08-22 16:10:26 -07:00
Sheetal Nandi
393464eb18 Emit pinned/tripleslash reference comments of interfaces
Fixes #501
2014-08-22 16:10:19 -07:00
Sheetal Nandi
85b892fd6a Emit pinned/tripleslash reference comments of signatures
Fixes #501
2014-08-22 16:10:11 -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
519ef5b383 Correct the declaration emit for overload implementation if there is single overload signature
Fixes  #480
2014-08-22 13:24:57 -07:00
Sheetal Nandi
53d79a25d3 Emit leading comments for '}' of the constructor block
Fixes #503
2014-08-21 17:17:32 -07:00
Sheetal Nandi
45e76e2bd2 Emit leading comments for '}' of the function block
Fixes #503
2014-08-21 17:17:02 -07:00
Sheetal Nandi
d2ae999a48 Enable test case for declaration emit for multiple file emit scenario 2014-08-21 16:15:30 -07:00
Sheetal Nandi
3e2de14933 Emit new lines between source files emit so that the file contents always start on new line
Fixes #500
2014-08-21 13:44:26 -07:00
Sheetal Nandi
6e4d0ef1ef Merge pull request #452 from Microsoft/emitComments
Emit comments in the .js and .d.ts files
2014-08-20 17:07:24 -07:00
Sheetal Nandi
8ad66bb6c6 Compiler test case for commit 0636a06 2014-08-20 16:18:40 -07:00
Jason Freeman
bfa2e940c0 Support resolution of any part of the RHS of an import 2014-08-19 15:04:30 -07:00
Sheetal Nandi
b5bd1bf505 Emit detached comments for constructor body 2014-08-19 12:38:56 -07:00