SourceLocation constructor

const SourceLocation({
  1. required int line,
  2. required int column,
  3. String? source,
  4. String? context,
})

Creates a new source location instance

Parameters:

  • line: Required 0-based line number
  • column: Required 0-based column number
  • source: Optional file path or URL
  • context: Optional text snippet showing context

Implementation

const SourceLocation({
  required this.line,
  required this.column,
  this.source,
  this.context,
});