MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / parse_route_annotation

Method parse_route_annotation

aiscript-runtime/src/parser.rs:154–164  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

152 }
153
154 fn parse_route_annotation(&mut self) -> RouteAnnotation {
155 let mut annotation = RouteAnnotation::default();
156 let directives = DirectiveParser::new(&mut self.scanner).parse_directives();
157 for directive in directives {
158 let line = directive.line;
159 if let Err(error) = annotation.parse_directive(directive) {
160 self.error_with_line(line, &error);
161 }
162 }
163 annotation
164 }
165
166 fn parse_fields(&mut self) -> Result<Vec<Field>, String> {
167 self.consume(TokenType::OpenBrace, "Expected '{' after field block")?;

Callers 2

parse_routeMethod · 0.80
parse_endpointMethod · 0.80

Calls 3

parse_directivesMethod · 0.80
error_with_lineMethod · 0.80
parse_directiveMethod · 0.45

Tested by

no test coverage detected