[][src]Module rslint_parser::util

Extra utlities for untyped syntax nodes, syntax tokens, and AST nodes.

Structs

Comment

Enums

CommentKind

Traits

SyntaxNodeExt

Extensions to rowan's SyntaxNode

SyntaxTokenExt

Functions

color

Colors a piece of source code using ANSI.
The string returned will be unaltered if stdout and stderr are not terminals.

concat_tokens

Concatenate tokens into a string

contains_js_linebreak

Check whether a string contains a valid js linebreak consisting of any of these characters: \n, \r, \u{2028}, or \u{2029}