Clone this repo:
  1. e80cb44 Bump actions/checkout from 4.1.4 to 4.1.5 in the github-actions group (#112) by dependabot[bot] · 10 days ago master
  2. c2743b4 blast_repo fixes (#111) by Devon Carew · 10 days ago
  3. 1695904 Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (#110) by dependabot[bot] · 3 weeks ago
  4. 10e6de5 Bump actions/checkout from 4.1.2 to 4.1.4 (#109) by dependabot[bot] · 3 weeks ago
  5. 45e11a3 Bump actions/checkout from 4.1.1 to 4.1.2 (#108) by dependabot[bot] · 7 weeks ago

Dart CI pub package package publisher

About this package

source_span is a library for tracking locations in source code. It's designed to provide a standard representation for source code locations and spans so that disparate packages can easily pass them among one another, and to make it easy to generate human-friendly messages associated with a given piece of code.

The most commonly-used class is the package's namesake, SourceSpan. It represents a span of characters in some source file, and is often attached to an object that has been parsed to indicate where it was parsed from. It provides access to the text of the span via SourceSpan.text and can be used to produce human-friendly messages using SourceSpan.message().

When parsing code from a file, SourceFile is useful. Not only does it provide an efficient means of computing line and column numbers, SourceFile.span() returns special FileSpans that are able to provide more context for their error messages.