mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-09 12:23:32 -04:00
21 lines
9.5 KiB
HTML
21 lines
9.5 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Select_ast (ppxlib.Ppxlib_ast.Select_ast)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../../index.html">Index</a> » <a href="../../index.html">ppxlib</a> » <a href="../index.html">Ppxlib_ast</a> » Select_ast</nav><header class="odoc-preamble"><h1>Module <code><span>Ppxlib_ast.Select_ast</span></code></h1></header><div class="odoc-tocs"><nav class="odoc-toc odoc-local-toc"><ul><li><a href="#parameters">Parameters</a></li><li><a href="#signature">Signature</a></li></ul></nav></div><div class="odoc-content"><h2 id="parameters"><a href="#parameters" class="anchor"></a>Parameters</h2><div class="odoc-spec"><div class="spec parameter anchored" id="argument-1-Ocaml"><a href="#argument-1-Ocaml" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-1-Ocaml/index.html">Ocaml</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><h2 id="signature"><a href="#signature" class="anchor"></a>Signature</h2><div class="odoc-spec"><div class="spec module anchored" id="module-Ast"><a href="#module-Ast" class="anchor"></a><code><span><span class="keyword">module</span> Ast</span><span> = <a href="../../Astlib/Ast_500/index.html">Astlib.Ast_500</a></span></code></div><div class="spec-doc"><p>Ast definition for this version</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-version"><a href="#val-version" class="anchor"></a><code><span><span class="keyword">val</span> version : int</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-string_version"><a href="#val-string_version" class="anchor"></a><code><span><span class="keyword">val</span> string_version : string</span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-types"><a href="#type-types" class="anchor"></a><code><span><span class="keyword">type</span> types</span><span> =
|
||
<span>< structure : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-structure">Ast.Parsetree.structure</a>
|
||
; signature : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-signature">Ast.Parsetree.signature</a>
|
||
; toplevel_phrase : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-toplevel_phrase">Ast.Parsetree.toplevel_phrase</a>
|
||
; core_type : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-core_type">Ast.Parsetree.core_type</a>
|
||
; expression : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-expression">Ast.Parsetree.expression</a>
|
||
; pattern : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-pattern">Ast.Parsetree.pattern</a>
|
||
; case : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-case">Ast.Parsetree.case</a>
|
||
; type_declaration : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-type_declaration">Ast.Parsetree.type_declaration</a>
|
||
; type_extension : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-type_extension">Ast.Parsetree.type_extension</a>
|
||
; extension_constructor : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-extension_constructor">Ast.Parsetree.extension_constructor</a>
|
||
; class_expr : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-class_expr">Ast.Parsetree.class_expr</a>
|
||
; class_field : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-class_field">Ast.Parsetree.class_field</a>
|
||
; class_type : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-class_type">Ast.Parsetree.class_type</a>
|
||
; class_signature : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-class_signature">Ast.Parsetree.class_signature</a>
|
||
; class_type_field : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-class_type_field">Ast.Parsetree.class_type_field</a>
|
||
; module_expr : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-module_expr">Ast.Parsetree.module_expr</a>
|
||
; module_type : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-module_type">Ast.Parsetree.module_type</a>
|
||
; signature_item : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-signature_item">Ast.Parsetree.signature_item</a>
|
||
; structure_item : <a href="../../Astlib/Ast_500/Parsetree/index.html#type-structure_item">Ast.Parsetree.structure_item</a> ></span></span></code></div><div class="spec-doc"><p>Shortcut for talking about Ast types</p></div></div><div class="odoc-spec"><div class="spec type extension anchored" id="extension-decl-Version"><a href="#extension-decl-Version" class="anchor"></a><code><span><span class="keyword">type</span> <span class="xref-unresolved">Ppxlib_ast__.Versions.witnesses</span> += </span></code><ol><li id="extension-Version" class="def variant extension anchored"><a href="#extension-Version" class="anchor"></a><code><span>| </span><span><span class="extension">Version</span> : <span><a href="#type-types">types</a> <span class="xref-unresolved">Ppxlib_ast__.Versions.witnesses</span></span></span></code></li></ol></div><div class="spec-doc"><p>A construtor for recovering type equalities between two arbitrary versions.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-migration_info"><a href="#val-migration_info" class="anchor"></a><code><span><span class="keyword">val</span> migration_info : <span><a href="#type-types">types</a> <span class="xref-unresolved">Ppxlib_ast__.Versions.migration_info</span></span></span></code></div><div class="spec-doc"><p>Information used to derive migration functions, see below</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Type"><a href="#module-Type" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Type/index.html">Type</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Of_ocaml"><a href="#module-Of_ocaml" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Of_ocaml/index.html">Of_ocaml</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-To_ocaml"><a href="#module-To_ocaml" class="anchor"></a><code><span><span class="keyword">module</span> <a href="To_ocaml/index.html">To_ocaml</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_ocaml"><a href="#val-of_ocaml" class="anchor"></a><code><span><span class="keyword">val</span> of_ocaml : 'ocaml 'js. <span><span><span>(<span class="type-var">'js</span>, <span class="type-var">'ocaml</span>)</span> <a href="Type/index.html#type-t">Type.t</a></span> <span class="arrow">-></span></span> <span><span class="type-var">'ocaml</span> <span class="arrow">-></span></span> <span class="type-var">'js</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_ocaml"><a href="#val-to_ocaml" class="anchor"></a><code><span><span class="keyword">val</span> to_ocaml : 'ocaml 'js. <span><span><span>(<span class="type-var">'js</span>, <span class="type-var">'ocaml</span>)</span> <a href="Type/index.html#type-t">Type.t</a></span> <span class="arrow">-></span></span> <span><span class="type-var">'js</span> <span class="arrow">-></span></span> <span class="type-var">'ocaml</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_ocaml_mapper"><a href="#val-of_ocaml_mapper" class="anchor"></a><code><span><span class="keyword">val</span> of_ocaml_mapper : <span><span><span>(<span class="type-var">'a</span>, <span class="type-var">'b</span>)</span> <a href="Type/index.html#type-t">Type.t</a></span> <span class="arrow">-></span></span> <span><span>(<span><span class="type-var">'c</span> <span class="arrow">-></span></span> <span><span class="type-var">'b</span> <span class="arrow">-></span></span> <span class="type-var">'b</span>)</span> <span class="arrow">-></span></span> <span><span class="type-var">'c</span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span class="type-var">'a</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_ocaml_mapper"><a href="#val-to_ocaml_mapper" class="anchor"></a><code><span><span class="keyword">val</span> to_ocaml_mapper : <span><span><span>(<span class="type-var">'a</span>, <span class="type-var">'b</span>)</span> <a href="Type/index.html#type-t">Type.t</a></span> <span class="arrow">-></span></span> <span><span>(<span><span class="type-var">'c</span> <span class="arrow">-></span></span> <span><span class="type-var">'a</span> <span class="arrow">-></span></span> <span class="type-var">'a</span>)</span> <span class="arrow">-></span></span> <span><span class="type-var">'c</span> <span class="arrow">-></span></span> <span><span class="type-var">'b</span> <span class="arrow">-></span></span> <span class="type-var">'b</span></span></code></div></div></div></body></html>
|