src/Pure/PIDE/command.scala
changeset 65341 c82a1620b274
parent 65335 7634d33c1a79
child 65359 9ca34f0407a9
equal deleted inserted replaced
65340:8ec91f7eca37 65341:c82a1620b274
   353   {
   353   {
   354     val (source1, span1) = Command_Span.unparsed(source).compact_source
   354     val (source1, span1) = Command_Span.unparsed(source).compact_source
   355     new Command(id, Document.Node.Name.empty, no_blobs, span1, source1, results, markup)
   355     new Command(id, Document.Node.Name.empty, no_blobs, span1, source1, results, markup)
   356   }
   356   }
   357 
   357 
   358   def unparsed(source: String): Command =
   358   def text(source: String): Command =
   359     unparsed(Document_ID.none, source, Results.empty, Markup_Tree.empty)
   359     unparsed(Document_ID.none, source, Results.empty, Markup_Tree.empty)
   360 
   360 
   361   def rich_text(id: Document_ID.Command, results: Results, body: XML.Body): Command =
   361   def rich_text(id: Document_ID.Command, results: Results, body: XML.Body): Command =
   362   {
   362   {
   363     val text = XML.content(body)
   363     val text = XML.content(body)