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

Method parse_docs

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

Source from the content-addressed store, hash-verified

31 }
32
33 fn parse_docs(&mut self) -> String {
34 let mut docs = String::new();
35 if self.match_token(TokenType::Doc) {
36 let lines = self
37 .previous
38 .lexeme
39 .lines()
40 .map(|line| line.trim())
41 .collect::<Vec<_>>();
42 docs = lines.join("\n");
43 }
44 docs
45 }
46
47 pub fn parse_route(&mut self) -> Result<Route, String> {
48 let annotation = self.parse_route_annotation();

Callers 3

parse_routeMethod · 0.80
parse_endpointMethod · 0.80
parse_fieldsMethod · 0.80

Calls 1

match_tokenMethod · 0.80

Tested by

no test coverage detected