Available on crate feature
ast-models only.Expand description
AST node models representing literal values in source code.
Structs§
- Boolean
Literal - A boolean literal from source.
- Char
Literal - A character literal from source, such as
'a'or'\u{1F600}'. - Float
Literal - A floating point literal from source, such as
1.5or2e-3. Like IntegerLiterals, these are never negative. - Format
String Literal - A format string literal from source, such as
`hello {name}`. - Integer
Literal - An integer literal from source. This only contains unsigned integers as writing negative numbers is considered to be a combination of an integer literal with a unary negation.
- String
Literal - A string literal from source, such as
"hello\n".
Enums§
- Literal
- Any literal value in source code.