src/Pure/Thy/sessions.scala
changeset 66712 4c98c929a12a
parent 66701 d181f8a0e857
child 66714 9fc4e144693c
     1.1 --- a/src/Pure/Thy/sessions.scala	Thu Sep 28 11:53:55 2017 +0200
     1.2 +++ b/src/Pure/Thy/sessions.scala	Thu Sep 28 15:11:32 2017 +0200
     1.3 @@ -115,7 +115,7 @@
     1.4    sealed case class Base(
     1.5      pos: Position.T = Position.none,
     1.6      global_theories: Map[String, String] = Map.empty,
     1.7 -    loaded_theories: Map[String, String] = Map.empty,
     1.8 +    loaded_theories: Set[String] = Set.empty,
     1.9      known: Known = Known.empty,
    1.10      keywords: Thy_Header.Keywords = Nil,
    1.11      syntax: Outer_Syntax = Outer_Syntax.empty,
    1.12 @@ -127,8 +127,8 @@
    1.13      def platform_path: Base = copy(known = known.platform_path)
    1.14      def standard_path: Base = copy(known = known.standard_path)
    1.15  
    1.16 -    def loaded_theory(name: Document.Node.Name): Boolean =
    1.17 -      loaded_theories.isDefinedAt(name.theory)
    1.18 +    def loaded_theory(name: String): Boolean = loaded_theories.contains(name)
    1.19 +    def loaded_theory(name: Document.Node.Name): Boolean = loaded_theory(name.theory)
    1.20  
    1.21      def known_theory(name: String): Option[Document.Node.Name] =
    1.22        known.theories.get(name)