src/Pure/ProofGeneral/pgip_isabelle.ML
changeset 26005 431ab3907291
parent 23884 1d39ec4fe73f
child 29606 fedb8be05f24
equal deleted inserted replaced
26004:2abb3005660f 26005:431ab3907291
    73 end
    73 end
    74 
    74 
    75 
    75 
    76 fun location_of_position pos =
    76 fun location_of_position pos =
    77     let val line = Position.line_of pos
    77     let val line = Position.line_of pos
       
    78         val column = Position.column_of pos
    78         val (url,descr) =
    79         val (url,descr) =
    79             (case Position.file_of pos of
    80             (case Position.file_of pos of
    80                NONE => (NONE, NONE)
    81                NONE => (NONE, NONE)
    81              | SOME fname =>
    82              | SOME fname =>
    82                let val path = Path.explode fname in
    83                let val path = Path.explode fname in
    83                  case ThyLoad.check_file Path.current path of
    84                  case ThyLoad.check_file Path.current path of
    84                    SOME _ => (SOME (PgipTypes.pgipurl_of_path path), NONE)
    85                    SOME _ => (SOME (PgipTypes.pgipurl_of_path path), NONE)
    85                  | NONE => (NONE, SOME fname)
    86                  | NONE => (NONE, SOME fname)
    86                end);
    87                end);
    87     in
    88     in
    88         { descr=descr, url=url, line=line, column=NONE, char=NONE, length=NONE }
    89         { descr=descr, url=url, line=line, column=column, char=NONE, length=NONE }
    89     end
    90     end
    90 
    91 
    91 
    92 
    92 val [ObjTheoryBody,
    93 val [ObjTheoryBody,
    93      ObjTheoryDecl,
    94      ObjTheoryDecl,