Class BashCaseExpTarget

Hierarchy (view full)

Constructors

Properties

annotations: string[] = []
children: ShellNodeTypes[] = []

The children nodes

isChanged: boolean = false
parent: ShellNodeTypes = null

The parent node

type: "BASH-CASE-EXP-TARGET" = "BASH-CASE-EXP-TARGET"

Accessors

Methods

  • Iterate over the children nodes (non recursive)

    Parameters

    • callback: ((node, index) => void)

      callback function to call for each node

        • (node, index): void
        • Parameters

          Returns void

    • Optional filter: ((node) => boolean)

    Returns void

  • Returns {
        children?: {
            children?: { type: string; position: { lineStart: number; columnStart: number; lineEnd: number; columnEnd: number; }; children?: ...[]; value?: string; }[];
            position: {
                columnEnd: number;
                columnStart: number;
                lineEnd: number;
                lineStart: number;
            };
            type: string;
            value?: string;
        }[];
        position: {
            columnEnd: number;
            columnStart: number;
            lineEnd: number;
            lineStart: number;
        };
        type: string;
        value?: string;
    }

    • Optional children?: {
          children?: { type: string; position: { lineStart: number; columnStart: number; lineEnd: number; columnEnd: number; }; children?: ...[]; value?: string; }[];
          position: {
              columnEnd: number;
              columnStart: number;
              lineEnd: number;
              lineStart: number;
          };
          type: string;
          value?: string;
      }[]
    • position: {
          columnEnd: number;
          columnStart: number;
          lineEnd: number;
          lineStart: number;
      }
      • columnEnd: number
      • columnStart: number
      • lineEnd: number
      • lineStart: number
    • type: string
    • Optional value?: string
  • Return a string representation of this node

    Parameters

    • asPrettyPrint: boolean = true

      true if the output should be pretty printed

    Returns string

    a string representation of this node

  • traverse all children recursively

    Parameters

    • callback: ((node) => boolean | void)

      returns false to stop the traverse

        • (node): boolean | void
        • Parameters

          Returns boolean | void

    • __namedParameters: {
          includeSelf: boolean;
      } = ...
      • includeSelf: boolean

    Returns boolean

    false if not everything has been traversed

Generated using TypeDoc