How to use the ngast.ProviderSymbol function in ngast

To help you get started, we’ve selected a few ngast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mgechev / ngrev / app / processor.js View on Github external
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) {

ngast

Parsing tools for Angular. The project is an abstraction over the Angular compiler which provides friendly interface.

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis