navigation

Ast

Namespace: FSharpLint.Framework
Parent: FSharpLint.Framework

Used to walk the FSharp Compiler's abstract syntax tree, so that each node can be visited by a list of visitors.


Declared Types
Type Description
AstNode

Nodes in the AST to be visited.

Lambda

Declared Modules
Module Description
List

Values and Functions
Name Description
extractAttributes

Signature: attrs:SynAttributes -> SynAttribute list

Concatenates the nested-list structure of SynAttributes into a SynAttribute list to keep other code mostly unchanged.

extractPatterns

Signature: simplePats:SynSimplePats -> SynSimplePat list

Concatenates the typed-or-untyped structure of SynSimplePats into a SynSimplePat list to keep other code mostly unchanged.

traverseNode

Signature: node:AstNode -> add:(AstNode -> unit) -> unit

Extracts the child nodes to be visited from a given node.