mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
Info has a property for its Categories.
This commit is contained in:
parent
d29e14508a
commit
84eeba6111
@ -1,5 +1,12 @@
|
||||
public enum Info: Equatable {
|
||||
case Literal(String, Set<Category>)
|
||||
|
||||
public var categories: Set<Category> {
|
||||
switch self {
|
||||
case let .Literal(_, c):
|
||||
return c
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user