From fa4922dd3d985350fbc30281f6ffcf6e05c542ad Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Fri, 3 Mar 2017 17:04:43 -0800 Subject: Added more stylized debugging style --- src/main/scala/firrtl/annotations/Annotation.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/scala/firrtl/annotations') diff --git a/src/main/scala/firrtl/annotations/Annotation.scala b/src/main/scala/firrtl/annotations/Annotation.scala index 9efc6e9b..cbc9bf1c 100644 --- a/src/main/scala/firrtl/annotations/Annotation.scala +++ b/src/main/scala/firrtl/annotations/Annotation.scala @@ -35,7 +35,7 @@ object DeletedAnnotation { Annotation(anno.target, classOf[Transform], s"""DELETED by $xFormName\n${AnnotationUtils.toYaml(anno)}""") private val deletedRegex = """(?s)DELETED by ([^\n]*)\n(.*)""".r - def unapply(a: Annotation): Option[Tuple2[String, Annotation]] = a match { + def unapply(a: Annotation): Option[(String, Annotation)] = a match { case Annotation(named, t, deletedRegex(xFormName, annoString)) if t == classOf[Transform] => Some((xFormName, AnnotationUtils.fromYaml(annoString))) case _ => None -- cgit v1.2.3