Re-exports§
pub use text_lines;
Structs§
- Comment
Container - Comments
Iterator - Line
AndColumn Index - Source
Pos - Swc unfortunately uses
BytePos(0)
as a magic value. This means that we can’t have byte positions of nodes line up with the text. To get around this, we have created our ownSourcePos
wrapper that hides the underlying swc byte position so it can’t be used incorrectly. - Source
Range - Source
Text Info - Stores the source text along with other data such as where all the lines occur in the text.
- Start
Source Pos - A special source pos that indicates the source start which functions can use as a parameter type in order to ensure someone doesn’t provide the wrong position.
- Text
Lines - Token
Container
Traits§
- Root
Node - A Module or Script node.
- Source
Ranged - Source
Ranged ForSpanned - Adds source position helper methods for swc types that implement
swc_common::Spanned
. - Source
Text Info Provider - Source
Text Provider
Type Aliases§
- Line
AndColumn Display - A 1-indexed line and column type which should be used for display purposes only (ex. in diagnostics).
- Line
AndColumn Index - A 0-indexed line and column type.