How to use the ngast.DirectiveSymbol 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
TemplateState.prototype.getMetadata = function (id) {
        var s = this.symbols[id];
        if (s) {
            if (s instanceof _angular_compiler.ElementAst) {
                return getElementMetadata(s);
            }
            else if (s instanceof ngast.DirectiveSymbol) {
                return getDirectiveMetadata(s);
            }
        }
        return null;
    };
    TemplateState.prototype.nextState = function (id) {

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