MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / getParser

Method getParser

masfactory-visualizer/src/parser/parser.ts:134–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 constructor() {}
133
134 private getParser(): TreeSitterParser | null {
135 if (this.parser) {return this.parser;}
136 const parser = createPythonParser();
137 if (parser) {
138 this.parser = parser;
139 }
140 return parser;
141 }
142
143 /**
144 * Configure parser behavior flags for forward compatibility.

Callers 5

findReexportTargetMethod · 0.95
getParsedPythonFileMethod · 0.95
parseMethod · 0.95
getConditionVariablesMethod · 0.95

Calls 1

createPythonParserFunction · 0.90

Tested by

no test coverage detected