MCPcopy Create free account
hub / github.com/dprint/jsonc-parser / create_string_lit

Function create_string_lit

src/parse_to_ast.rs:435–440  ·  view source on GitHub ↗
(context: &Context<'a>, value: Cow<'a, str>)

Source from the content-addressed store, hash-verified

433// factory functions
434
435fn create_string_lit<'a>(context: &Context<'a>, value: Cow<'a, str>) -> StringLit<'a> {
436 StringLit {
437 range: context.create_range_from_last_token(),
438 value,
439 }
440}
441
442fn create_word<'a>(context: &Context<'a>, value: &'a str) -> WordLit<'a> {
443 WordLit {

Callers 2

parse_valueFunction · 0.85
parse_object_propertyFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…