• Scan nodes looking for the first occurrence of token. If options.onlySkipWhitespaceAndComments==true, then the scan will only skip whitespace/comment nodes.

    Parameters

    • nodes: (Node | Argument)[]
    • token: string | Node | Argument
    • Optional options: {
          allowSubstringMatches?: boolean;
          onlySkipWhitespaceAndComments?: boolean;
          startIndex?: number;
      }
      • Optional allowSubstringMatches?: boolean

        If true, will look inside Ast.String nodes to see if the string contents contain token.

      • Optional onlySkipWhitespaceAndComments?: boolean

        If true, whitespace and comments will be skilled but any other node that doesn't match token will cause the scan to terminate.

      • Optional startIndex?: number

        Index to start scanning.

    Returns number | null

Generated using TypeDoc