MCPcopy Create free account
hub / github.com/QuiltMC/chasm / parse

Method parse

chassembly/src/main/java/org/quiltmc/chasm/lang/api/ast/Node.java:41–44  ·  view source on GitHub ↗

Parse a given file into a Node. @param path Path to a valid source file containing a single node. @return The node parsed from the given source file. @throws IOException If there is an error reading the file. @throws ParseException If the source contains syntax errors.

(Path path)

Source from the content-addressed store, hash-verified

39 * @throws ParseException If the source contains syntax errors.
40 */
41 public static Node parse(Path path) throws IOException {
42 Parser parser = new Parser(path);
43 return parser.file();
44 }
45
46 /**
47 * Parse a given {@link String} into a {@link Node}.

Callers 6

doTestMethod · 0.95
doTestMethod · 0.95
doTestMethod · 0.95
evaluateMethod · 0.95
applyMethod · 0.95
createTransformersMethod · 0.95

Calls

no outgoing calls

Tested by 4

doTestMethod · 0.76
doTestMethod · 0.76
doTestMethod · 0.76
evaluateMethod · 0.76