equal
deleted
inserted
replaced
1098 } |
1098 } |
1099 |
1099 |
1100 def parse_root(path: Path): List[Entry] = Parsers.parse_root(path) |
1100 def parse_root(path: Path): List[Entry] = Parsers.parse_root(path) |
1101 |
1101 |
1102 def parse_root_entries(path: Path): List[Session_Entry] = |
1102 def parse_root_entries(path: Path): List[Session_Entry] = |
1103 for (entry <- Parsers.parse_root(path) if entry.isInstanceOf[Session_Entry]) |
1103 Parsers.parse_root(path).flatMap(Library.as_subclass(classOf[Session_Entry])) |
1104 yield entry.asInstanceOf[Session_Entry] |
|
1105 |
1104 |
1106 def parse_roots(roots: Path): List[String] = { |
1105 def parse_roots(roots: Path): List[String] = { |
1107 for { |
1106 for { |
1108 line <- split_lines(File.read(roots)) |
1107 line <- split_lines(File.read(roots)) |
1109 if !(line == "" || line.startsWith("#")) |
1108 if !(line == "" || line.startsWith("#")) |