src/Pure/Thy/thy_resources.scala
changeset 67059 df7d728103f1
parent 67058 03d4954c68bb
child 67061 2efa25302f34
equal deleted inserted replaced
67058:03d4954c68bb 67059:df7d728103f1
    64     val import_names =
    64     val import_names =
    65       for ((thy, pos) <- theories)
    65       for ((thy, pos) <- theories)
    66       yield (import_name(qualifier, master_dir, thy), pos)
    66       yield (import_name(qualifier, master_dir, thy), pos)
    67 
    67 
    68     val dependencies = resources.dependencies(import_names).check_errors
    68     val dependencies = resources.dependencies(import_names).check_errors
    69     val loaded_theories = dependencies.names.map(read_thy(_))
    69     val loaded_theories = dependencies.theories.map(read_thy(_))
    70 
    70 
    71     val edits =
    71     val edits =
    72       state.change_result(st =>
    72       state.change_result(st =>
    73       {
    73       {
    74         val theory_edits =
    74         val theory_edits =
    82         val st1 = st.copy(theories = st.theories ++ theory_edits.map(_._1))
    82         val st1 = st.copy(theories = st.theories ++ theory_edits.map(_._1))
    83         (theory_edits.flatMap(_._2), st1)
    83         (theory_edits.flatMap(_._2), st1)
    84       })
    84       })
    85     session.update(Document.Blobs.empty, edits)
    85     session.update(Document.Blobs.empty, edits)
    86 
    86 
    87     dependencies.names
    87     dependencies.theories
    88   }
    88   }
    89 }
    89 }