Lines Matching refs:loc
243 Ok(ast::Expr::Identifier { loc: n.as_loc(context), name: n.as_string() }) in parse_atomic_expr()
246 Ok(ast::Expr::Integer { loc: n.as_loc(context), value: n.as_usize()? }) in parse_atomic_expr()
269 loc: node.as_loc(context), in parse_endianness()
283 let loc = node.as_loc(context); in parse_constraint() localVariable
287 Ok(ast::Constraint { id, loc, value }) in parse_constraint()
303 let loc = node.as_loc(context); in parse_enum_tag() localVariable
307 Ok(ast::Tag { id, loc, value }) in parse_enum_tag()
320 let loc = node.as_loc(context); in parse_field() localVariable
326 ast::Field::Checksum { loc, field_id } in parse_field()
330 ast::Field::Padding { loc, width } in parse_field()
341 ast::Field::Size { loc, field_id, width } in parse_field()
346 ast::Field::Count { loc, field_id, width } in parse_field()
348 Rule::body_field => ast::Field::Body { loc }, in parse_field()
351 ast::Field::Payload { loc, size_modifier } in parse_field()
356 ast::Field::Fixed { loc, enum_id, tag_id, width, value } in parse_field()
360 ast::Field::Reserved { loc, width } in parse_field()
378 ast::Field::Array { loc, id, type_id, width, size, size_modifier } in parse_field()
383 ast::Field::Scalar { loc, id, width } in parse_field()
388 ast::Field::Typedef { loc, id, type_id } in parse_field()
393 ast::Field::Group { loc, group_id, constraints } in parse_field()
426 loc: ast::SourceRange { in parse_grammar()
439 let loc = node.as_loc(context); in parse_grammar() localVariable
450 grammar.declarations.push(ast::Decl::Checksum { id, loc, function, width }) in parse_grammar()
457 grammar.declarations.push(ast::Decl::CustomField { id, loc, function, width }) in parse_grammar()
464 grammar.declarations.push(ast::Decl::Enum { id, loc, width, tags }) in parse_grammar()
474 loc, in parse_grammar()
488 loc, in parse_grammar()
498 grammar.declarations.push(ast::Decl::Group { id, loc, fields }) in parse_grammar()