data-cap
    Preparing search index...

    Function positionOf

    • The one place a SourcePosition is ever computed from a raw AST node -- every caller reuses this instead of hand-rolling getLineAndCharacterOfPosition arithmetic.

      Parameters

      • sourceFile: SourceFile
      • node: Node

      Returns SourcePosition