MCPcopy Create free account
hub / github.com/Whiley/WhileyCompiler / fromString

Method fromString

src/main/java/wyc/util/testing/Util.java:48–55  ·  view source on GitHub ↗

Parse a Whiley type from a string. @param from @return

(String from)

Source from the content-addressed store, hash-verified

46 * @return
47 */
48 public static Type fromString(String from) {
49 Trie id = Trie.fromString("main");
50 WhileyFile sf = new WhileyFile(id,from.getBytes());
51 WyilFile wf = new WyilFile(Arrays.asList(sf));
52 WhileyFileParser parser = new WhileyFileParser(wf, sf);
53 WhileyFileParser.EnclosingScope scope = parser.new EnclosingScope();
54 return parser.parseType(scope);
55 }
56
57 /**
58 * Scan a directory to get the names of all the whiley source files

Callers 6

checkIsSubtypeMethod · 0.95
checkNotSubtypeMethod · 0.95
checkIsSubtypeMethod · 0.95
checkNotSubtypeMethod · 0.95
checkIsSubtypeMethod · 0.95
checkNotSubtypeMethod · 0.95

Calls 3

fromStringMethod · 0.95
parseTypeMethod · 0.95
getBytesMethod · 0.80

Tested by

no test coverage detected