create static method

Location create(
  1. int startLine,
  2. int startColumn,
  3. int startOffset,
  4. int endLine,
  5. int endColumn,
  6. int endOffset, [
  7. String source = "",
])

Implementation

static Location create(int startLine, int startColumn, int startOffset,
    int endLine, int endColumn, int endOffset,
    [String source = ""]) {
  final startSegment = new Segment(startLine, startColumn, startOffset);
  final endSegment = new Segment(endLine, endColumn, endOffset);
  return new Location(startSegment, endSegment, source);
}