mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Retrieve the array of files.
This commit is contained in:
parent
1e3ab7aeeb
commit
ba42033f09
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user