MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / getParser

Method getParser

compiler-args-app.ts:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 getParser(): BaseParser {
138 if (compilerParsers[this.parserName as keyof typeof compilerParsers]) {
139 return new (compilerParsers[this.parserName as keyof typeof compilerParsers])(this.compiler);
140 }
141 console.error('Unknown parser type');
142 process.exit(1);
143 }
144
145 async doTheParsing() {
146 const parser = this.getParser();

Callers 4

getPossibleStdversMethod · 0.95
getPossibleTargetsMethod · 0.95
getPossibleEditionsMethod · 0.95
doTheParsingMethod · 0.95

Calls 2

errorMethod · 0.80
exitMethod · 0.80

Tested by

no test coverage detected