extension PureYAML.Parsing.LibYAML.Parser { func isBlockEntry(_ token: Token) -> Bool { if case .blockEntry = token.type { return true } return false } func isBlockEnd(_ token: Token) -> Bool { if case .blockEnd = token.type { return true } return false } func isKey(_ token: Token) -> Bool { if case .key = token.type { return true } return false } func isValue(_ token: Token) -> Bool { if case .value = token.type { return true } return false } func isFlowEntry(_ token: Token) -> Bool { if case .flowEntry = token.type { return true } return false } func isFlowSequenceEnd(_ token: Token) -> Bool { if case .flowSequenceEnd = token.type { return true } return false } func isFlowMappingEnd(_ token: Token) -> Bool { if case .flowMappingEnd = token.type { return true } return false } }