Logo fantomas

XmlDocIncludeExpander Module

Types

Type Description

ExpansionEnv

Per-pass shared include expansion state.

Functions and values

Function or value Description

expandIncludeLines env emit baseFileName range lines

Full Usage: expandIncludeLines env emit baseFileName range lines

Parameters:
    env : ExpansionEnv
    emit : bool
    baseFileName : string
    range : range
    lines : string[]

Returns: string[]

Expand all elements in the given elaborated XML doc lines. When `emit` is true, include errors are reported as warnings (FS3908); when false they are suppressed (for quiet validation such as XmlDoc.Check). Returns the input unchanged when there are no includes, parsing fails, or nothing expanded.

env : ExpansionEnv
emit : bool
baseFileName : string
range : range
lines : string[]
Returns: string[]

mkExpansionEnv ()

Full Usage: mkExpansionEnv ()

Parameters:
    () : unit

Returns: ExpansionEnv

Create a fresh per-pass include expansion environment.

() : unit
Returns: ExpansionEnv

Type something to start searching.