1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Retrieve the array of files.

This commit is contained in:
Rob Rix 2015-11-02 11:37:54 -05:00
parent 1e3ab7aeeb
commit ba42033f09

View File

@ -1,6 +1,15 @@
enum Argument {
indirect case File(Source, Argument)
case End
var files: [Source] {
switch self {
case let .File(a, rest):
return [a] + rest.files
case .End:
return []
}
}
}
let argumentsParser: Madness.Parser<[String], Argument>.Function = none()