Skip to content

Commit

Permalink
generate context when it is queried
Browse files Browse the repository at this point in the history
  • Loading branch information
Naum Tomov committed Oct 25, 2023
1 parent 78c3d81 commit 220482a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/col/vct/col/origin/Origin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ case class Origin(originContents: Seq[OriginContent]) extends Blame[Verification
case _ => Nil
} match {
case Seq(Context(any)) => Some(Context(any))
case _ => None
case _ =>
Some(Context(InputOrigin.contextLines(
getReadable.getOrElse(return None).readable,
getStartEndLines.getOrElse(return None).startEndLineIdx._1,
getStartEndLines.getOrElse(return None).startEndLineIdx._2,
getOriginCols.getOrElse(return None).cols)))
}
}

Expand Down

0 comments on commit 220482a

Please sign in to comment.