How to use the ngast.Symbol 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
id = getProviderId(node.getMetadata());
            name = getProviderName(node.getMetadata());
        }
        else {
            id = getId(node.symbol);
            name = node.symbol.name;
        }
        nodes[id] = {
            id: id,
            label: name,
            data: {
                symbol: node,
                metadata: null
            },
            type: {
                angular: node instanceof ngast.Symbol ? isAngularSymbol(node.symbol) : isAngularSymbol(node.getMetadata()),
                type: symbolType
            }
        };
        edges.push({
            from: parentSet,
            to: id
        });
    };
    return ModuleState;

ngast

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

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis