1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 21:43:07 +03:00

Info just uses Strings as its categories.

This commit is contained in:
Rob Rix 2015-10-14 09:02:00 -04:00
parent 4d07ed6fe7
commit 1f40f40869

View File

@ -1,8 +1,8 @@
/// Source info & categorization for nodes in a syntax tree.
public enum Info: AlgebraicHashable, Categorizable, CustomDebugStringConvertible, CustomJSONConvertible {
case Literal(String, Set<Category>)
case Literal(String, Set<String>)
public var categories: Set<Category> {
public var categories: Set<String> {
switch self {
case let .Literal(_, c):
return c