Function isSymbolFlagSet

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

    Parameters

    • symbol: Symbol
    • flag: SymbolFlags

    Returns boolean

    Example

    declare const symbol: ts.Symbol;

    if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) {
    // ...
    }