File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/util Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import language.implicitConversions
5
5
/** The offsets part of a full position, consisting of 2 or 3 entries:
6
6
* - start: the start offset of the span, in characters from start of file
7
7
* - end : the end offset of the span
8
- * - point: if given, the offset where a sing;le `^` would be logically placed
8
+ * - point: if given, the offset where a single `^` would be logically placed
9
9
*
10
- & Spans are encoded according to the following format in little endian:
10
+ * Spans are encoded according to the following format in little endian:
11
11
* Start: unsigned 26 Bits (works for source files up to 64M)
12
12
* End: unsigned 26 Bits
13
13
* Point: unsigned 12 Bits relative to start
@@ -30,8 +30,8 @@ object Spans {
30
30
31
31
/** A span indicates a range between a start offset and an end offset.
32
32
* Spans can be synthetic or source-derived. A source-derived span
33
- * has in addition a point lies somewhere between start and end. The point
34
- * is roughly where the ^ would go if an error was diagnosed at that position.
33
+ * has in addition a point. The point lies somewhere between start and end. The point
34
+ * is roughly where the `^` would go if an error was diagnosed at that position.
35
35
* All quantities are encoded opaquely in a Long.
36
36
*/
37
37
class Span (val coords : Long ) extends AnyVal {
You can’t perform that action at this time.
0 commit comments