Struct ketos::lexer::CodeMap [] [src]

pub struct CodeMap { /* fields omitted */ }

Contains source code of parsed programs

Methods

impl CodeMap
[src]

Creates a new CodeMap.

Adds a source to the codemap, returning its offset in the internal buffer.

Clears all source from the codemap.

Highlights a span within the codemap.

Panics

Panics if span is not valid.

Trait Implementations

impl Clone for CodeMap
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CodeMap
[src]

Formats the value using the given formatter.