Parse a Whiley type from a string. @param from @return
(String from)
| 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 |
no test coverage detected