Skip to content
Snippets Groups Projects
Commit fb858669 authored by Mikaël Mayer's avatar Mikaël Mayer
Browse files

Added forgotten @library on functions names.

parent d0fd6f15
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import scala.language.implicitConversions
object StaticChecks {
case class Ensuring[A](x: A) {
@library
def ensuring(cond: (A) => Boolean): A = x
}
......
......@@ -10,6 +10,7 @@ case class StyleRule(target: String, rules: List[WebStyle])
@library
case class StyleSheet(elems: List[StyleRule]) {
@library
def apply(l: List[StyleRule]): StyleSheet = {
StyleSheet(elems ++ l)
}
......@@ -23,7 +24,8 @@ case class StyleSheet(elems: List[StyleRule]) {
}
}
object WebPage {
object WebPage {
@library
def apply(main: WebElement): WebPage = {
WebPage(main, StyleSheet(Nil()))
}
......
......@@ -4,6 +4,7 @@ import leon.lang._
import leon.annotation._
package object webDescription {
@library
val Style = StyleSheet(Nil())
@library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment