Function isNodeFlagSet

  • Test if the given node has the given NodeFlags set.

    Parameters

    • node: Node
    • flag: NodeFlags

    Returns boolean

    Example

    declare const node: ts.Node;

    if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) {
    // ...
    }