17 lines
496 B
Swift
17 lines
496 B
Swift
//
|
|
// InheritanceDeclaration.swift
|
|
// CuckooGenerator
|
|
//
|
|
// Created by Arjan Duijzer on 22/02/2017.
|
|
// Copyright (c) 2017 Brightify. All rights reserved.
|
|
//
|
|
|
|
public struct InheritanceDeclaration: Token {
|
|
public static let empty = InheritanceDeclaration(name: Tokenizer.nameNotSet)
|
|
public let name: String
|
|
|
|
public func isEqual(to other: Token) -> Bool {
|
|
guard let other = other as? InheritanceDeclaration else { return false }
|
|
return self.name == other.name
|
|
}
|
|
} |