Interface AstNodeService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<org.mule.weave.v2.api.tooling.ast.DWAstNode> nodeAt​(java.lang.String uri, org.eclipse.lsp4j.Range range)
      Given a String that references a project file URI and a Range for the given DWAstNodeKind, it parses the script and generates the DWAstNode for the expected kind.
      org.eclipse.lsp4j.MarkupContent toMarkupContent​(java.lang.String weaveDoc)
      Given a weaveDoc it creates a MarkupContent in mark down format.
    • Method Detail

      • nodeAt

        java.util.Optional<org.mule.weave.v2.api.tooling.ast.DWAstNode> nodeAt​(java.lang.String uri,
                                                                               org.eclipse.lsp4j.Range range)
        Given a String that references a project file URI and a Range for the given DWAstNodeKind, it parses the script and generates the DWAstNode for the expected kind. This method will apply the scope or type checking phases.
        Parameters:
        uri - file URI to be parsed.
        range - The range.
        Returns:
        an Optional of DWAstNode if there is a node at the given location.
      • toMarkupContent

        org.eclipse.lsp4j.MarkupContent toMarkupContent​(java.lang.String weaveDoc)
        Given a weaveDoc it creates a MarkupContent in mark down format.
        Parameters:
        weaveDoc - The weave documentation to transform.
        Returns:
        The created MarkupContent in mark down format.