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.getMetadata = function (id) {
var data = this.symbols[id].data;
if (!data) {
return null;
}
if (data.symbol instanceof ngast.DirectiveSymbol) {
return getDirectiveMetadata(data.symbol);
}
else if (data.symbol instanceof ngast.ProviderSymbol) {
return getProviderMetadata(data.symbol);
}
else if (data.symbol instanceof ngast.PipeSymbol) {
return getPipeMetadata(data.symbol);
}
return null;
};
ModuleState.prototype.nextState = function (nodeId) {