ng-typeview
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -312,15 +312,26 @@ "use strict"; | ||
function nodeExtractScopeInterface(node) { | ||
if (node.kind === ts.SyntaxKind.InterfaceDeclaration && !nodeIsExported(node)) { | ||
var curIntfInfo = parseScopeInterface(node); | ||
if (curIntfInfo.isSome()) { | ||
scopeInfo = curIntfInfo.map(function (x) { return x[0]; }); | ||
scopeTypeParams = curIntfInfo.map(function (x) { return x[1]; }); | ||
// so that the viewtest file may compile, we must copy | ||
// in it classes & interfaces that may have been declared | ||
// privately in the controller. We do limit ourselves to | ||
// top-level declarations on which the Scope type declaration | ||
// may depend, that's why we check whether they're under the | ||
// module block. if there is no TS module and declarations are | ||
// toplevel then no need to copy them as they were global anyway. | ||
if (node.parent && | ||
node.parent.kind === ts.SyntaxKind.ModuleBlock && | ||
!nodeIsExported(node)) { | ||
if (node.kind === ts.SyntaxKind.InterfaceDeclaration) { | ||
var curIntfInfo = parseScopeInterface(node); | ||
if (curIntfInfo.isSome()) { | ||
scopeInfo = curIntfInfo.map(function (x) { return x[0]; }); | ||
scopeTypeParams = curIntfInfo.map(function (x) { return x[1]; }); | ||
} | ||
else { | ||
nonExportedDeclarations.push(node.getText()); | ||
} | ||
} | ||
else { | ||
if (node.kind === ts.SyntaxKind.ClassDeclaration) { | ||
nonExportedDeclarations.push(node.getText()); | ||
} | ||
} | ||
if (node.kind === ts.SyntaxKind.ClassDeclaration && !nodeIsExported(node)) { | ||
nonExportedDeclarations.push(node.getText()); | ||
} | ||
if (node.kind === ts.SyntaxKind.ModuleDeclaration) { | ||
@@ -327,0 +338,0 @@ var moduleLevel = node.name.text; |
{ | ||
"name": "ng-typeview", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "library to enable type-checking of angular views when using typescript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
217793
2898