src/Pure/PIDE/document.scala
changeset 48793 2d6691085b8d
parent 48707 ba531af91148
child 48923 a2df77fcf1eb
equal deleted inserted replaced
48792:4aa5b965f70e 48793:2d6691085b8d
    49     def bad_header(msg: String): Header = Header(Nil, Nil, Nil, List(msg))
    49     def bad_header(msg: String): Header = Header(Nil, Nil, Nil, List(msg))
    50 
    50 
    51     object Name
    51     object Name
    52     {
    52     {
    53       val empty = Name("", "", "")
    53       val empty = Name("", "", "")
    54       def apply(path: Path): Name =
    54       def apply(raw_path: Path): Name =
    55       {
    55       {
       
    56         val path = raw_path.expand
    56         val node = path.implode
    57         val node = path.implode
    57         val dir = path.dir.implode
    58         val dir = path.dir.implode
    58         val theory = Thy_Header.thy_name(node) getOrElse error("Bad theory file name: " + path)
    59         val theory = Thy_Header.thy_name(node) getOrElse error("Bad theory file name: " + path)
    59         Name(node, dir, theory)
    60         Name(node, dir, theory)
    60       }
    61       }