Commit graph

9 commits

Author SHA1 Message Date
Anders Hejlsberg 59889d871d Corrected codegen to support shadowed module names. 2014-09-06 17:40:19 -07:00
Sheetal Nandi c643f39557 Check for the accessible symbol from exported import
eg:
// @Filename: w1.ts
export = Widget1
class Widget1 { name = 'one'; }

// @Filename: exporter.ts
export import w = require('./w1');

// @Filename: consumer.ts
import e = require('./exporter');

export function w(): e.w { // Should be OK
    return new e.w();
}

In this looking for the name of return type of function w,
not just look for the alias == SymbolOfReturnType but also
look for alias.exportedSymbols === symbolOfReturnType
and qualify it during the toString
2014-08-08 12:57:59 -07:00
Sheetal Nandi 0b227d5196 Test baselines because of change 2014-08-06 13:12:34 -07:00
Sheetal Nandi 8936662090 Enable compiler runner to report the errors from compiling generated declaration files 2014-07-17 18:16:32 -07:00
Sheetal Nandi 2273355df4 Start emitting qualified path if the current symbol is not visible in enclosing declaration
Note that this doesnt handle aliases yet.
2014-07-16 11:30:14 -07:00
Sheetal Nandi 574c075dba Emit the types in declaration file 2014-07-15 13:08:10 -07:00
Sheetal Nandi cd14e36460 Emit alias declaration if its name is used as identifier of export assignment 2014-07-15 08:57:30 -07:00
Sheetal Nandi 063399d228 Emit declaration if its identifier is used in export assignment of external module 2014-07-15 08:57:22 -07:00
Mohamed Hegazy 214df64e28 Add snapshot of compiler sources 2014-07-12 17:30:19 -07:00