More comments

This commit is contained in:
Anders Hejlsberg
2015-03-04 06:25:45 -08:00
parent b2a0e1beaa
commit e4a11cb0c7
2 changed files with 8 additions and 1 deletions

View File

@@ -460,6 +460,13 @@ module ts {
return result;
}
// An import symbol is created by one of the following declarations:
// import <symbol> = ...
// import <symbol> from ...
// import * as <symbol> from ...
// import { x as <symbol> } from ...
// export { x as <symbol> } from ...
// export default ...
function isImportSymbolDeclaration(node: Node): boolean {
return node.kind === SyntaxKind.ImportEqualsDeclaration ||
node.kind === SyntaxKind.ImportClause && !!(<ImportClause>node).name ||

View File

@@ -1227,7 +1227,7 @@ module ts {
ExportValue = 0x00100000, // Exported value marker (see comment in declareModuleMember in binder)
ExportType = 0x00200000, // Exported type marker (see comment in declareModuleMember in binder)
ExportNamespace = 0x00400000, // Exported namespace marker (see comment in declareModuleMember in binder)
Import = 0x00800000, // An alias for another symbol
Import = 0x00800000, // An alias for another symbol (see comment in isImportSymbolDeclaration in checker)
Instantiated = 0x01000000, // Instantiated symbol
Merged = 0x02000000, // Merged symbol (created during program binding)
Transient = 0x04000000, // Transient symbol (created during type check)