Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ModuleState.prototype.nextState = function (nodeId) {
if (nodeId === this.symbolId) {
return null;
}
var data = this.symbols[nodeId].data;
if (!data) {
return null;
}
if (data.symbol instanceof ngast.DirectiveSymbol) {
return new DirectiveState(this.context, data.symbol);
}
else if (data.symbol instanceof ngast.ProviderSymbol) {
return new ProviderState(this.context, data.symbol);
}
else if (data.symbol instanceof ngast.PipeSymbol) {
return new PipeState(this.context, data.symbol);
}
return null;
};
ModuleState.prototype.getData = function () {