avoid multiple load_commands;
authorwenzelm
Wed, 03 Aug 2022 12:25:37 +0200
changeset 75745 ebbb7d6eb296
parent 75744 6b46b4ba00d3
child 75746 3513fdfeb4d8
avoid multiple load_commands;
src/Pure/PIDE/resources.scala
--- a/src/Pure/PIDE/resources.scala	Wed Aug 03 12:25:23 2022 +0200
+++ b/src/Pure/PIDE/resources.scala	Wed Aug 03 12:25:37 2022 +0200
@@ -407,7 +407,7 @@
     def get_syntax(name: Document.Node.Name): Outer_Syntax =
       loaded_theories.get_node(name.theory)
 
-    def load_commands: List[(Document.Node.Name, List[Command_Span.Span])] =
+    lazy val load_commands: List[(Document.Node.Name, List[Command_Span.Span])] =
       theories.zip(
         Par_List.map((e: () => List[Command_Span.Span]) => e(),
           theories.map(name => resources.load_commands(get_syntax(name), name))))