SyntacticEntityX extension

Used to translate a single AST node into a SourceSpan (i.e. start and end location within source code)

on
  • SyntacticEntity

Methods

toElement(ResolvedUnitResult unit) → Element?
toSourceRange(ResolvedUnitResult unit) → SourceRange
toSourceSpan(ResolvedUnitResult unit) → SourceSpan
toSourceSpanFromPath(String path, String source) → SourceSpan