(
value: impl Into<Box<str>>,
prefix: StringLiteralPrefix,
range: TextRange,
)
| 11 | |
| 12 | impl Constant { |
| 13 | pub(super) fn new_str( |
| 14 | value: impl Into<Box<str>>, |
| 15 | prefix: StringLiteralPrefix, |
| 16 | range: TextRange, |
| 17 | ) -> Self { |
| 18 | let value = value.into(); |
| 19 | Self { |
| 20 | range, |
| 21 | value: ConstantLiteral::Str { value, prefix }, |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | pub(super) const fn new_int(value: ast::Int, range: TextRange) -> Self { |
| 26 | Self { |
no outgoing calls
no test coverage detected