diff options
| author | Adam Izraelevitz | 2017-03-03 17:04:43 -0800 |
|---|---|---|
| committer | Adam Izraelevitz | 2017-03-06 16:48:15 -0800 |
| commit | fa4922dd3d985350fbc30281f6ffcf6e05c542ad (patch) | |
| tree | 1ba8ac3195806c5684a2ac2fbedf724ca056819a /src/main/scala/firrtl/annotations/Annotation.scala | |
| parent | b5ef5b876d4f4ad4a17bc81362b2264970272d63 (diff) | |
Added more stylized debugging style
Diffstat (limited to 'src/main/scala/firrtl/annotations/Annotation.scala')
| -rw-r--r-- | src/main/scala/firrtl/annotations/Annotation.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
