Logo fantomas

ModuleOrNamespaceNode Type

A top-level module or namespace containing an optional header and a list of declarations. Corresponds to a `SynModuleOrNamespace` in the FCS untyped AST.

Constructors

Constructor Description

ModuleOrNamespaceNode(header, decls, range)

Full Usage: ModuleOrNamespaceNode(header, decls, range)

Parameters:
Returns: ModuleOrNamespaceNode
header : ModuleOrNamespaceHeaderNode option
decls : ModuleDecl list
range : range
Returns: ModuleOrNamespaceNode

Instance members

Instance member Description

this.Declarations

Full Usage: this.Declarations

Returns: ModuleDecl list
Returns: ModuleDecl list

this.Header

Full Usage: this.Header

Returns: ModuleOrNamespaceHeaderNode option

this.IsNamed

Full Usage: this.IsNamed

Returns: bool
Returns: bool

Inherited members

Inherited from NodeBase

Instance members

Instance member Description

this.AddAfter

Full Usage: this.AddAfter

Parameters:
triviaNode : TriviaNode

this.AddBefore

Full Usage: this.AddBefore

Parameters:
triviaNode : TriviaNode

this.AddCursor

Full Usage: this.AddCursor

Parameters:
cursor : pos

this.AppendToStringWithIndent

Full Usage: this.AppendToStringWithIndent

Parameters:
sb : StringBuilder
depth : int

this.ToStringWithIndent

Full Usage: this.ToStringWithIndent

Parameters:
    depth : int

Returns: string
depth : int
Returns: string

this.HasContentBefore

Full Usage: this.HasContentBefore

Returns: bool
Returns: bool

this.ContentAfter

Full Usage: this.ContentAfter

Returns: TriviaNode seq
Returns: TriviaNode seq

this.ContentBefore

Full Usage: this.ContentBefore

Returns: TriviaNode seq
Returns: TriviaNode seq

this.HasContentAfter

Full Usage: this.HasContentAfter

Returns: bool
Returns: bool

this.Range

Full Usage: this.Range

Returns: range
Returns: range

this.Children

Full Usage: this.Children

Returns: Node array
Modifiers: abstract
Returns: Node array

this.TryGetCursor

Full Usage: this.TryGetCursor

Returns: pos option
Returns: pos option

Type something to start searching.