Function isFunctionScopeBoundary

  • Is the node a scope boundary, specifically due to it being a function.

    Parameters

    • node: Node

    Returns boolean

    Example

    declare const node: ts.Node;

    if (isFunctionScopeBoundary(node, ts.ObjectFlags.Anonymous)) {
    // ...
    }