Logo Fabulous.AST

ChainLink Type

One link of a member-access / call chain, in source order: a receiver, then `ChainLinkDot()` followed by one link per step, e.g. `A.B(c).D()`. Fantomas 8 models a chain as a head plus dotted segments (ExprChain); a ChainExpr converts these links into that shape when it is built.

Union cases

Union case Description

AppParen(functionName, argument)

Full Usage: AppParen(functionName, argument)

Parameters:

A call with a parenthesised argument: `C(d)`.

functionName : Expr
argument : Expr

AppUnit functionName

Full Usage: AppUnit functionName

Parameters:
    functionName : Expr

A call with unit: `E()`.

functionName : Expr

Dot

Full Usage: Dot

The `.` between two links.

Expr Expr

Full Usage: Expr Expr

Parameters:

Any other expression used as a link.

Item : Expr

Identifier Expr

Full Usage: Identifier Expr

Parameters:

A name: `A` in `A.B`.

Item : Expr

IndexExpr Expr

Full Usage: IndexExpr Expr

Parameters:

An index after a dot: `.[h]`.

Item : Expr

Instance members

Instance member Description

this.IsAppParen

Full Usage: this.IsAppParen

Returns: bool
Returns: bool

this.IsAppUnit

Full Usage: this.IsAppUnit

Returns: bool
Returns: bool

this.IsDot

Full Usage: this.IsDot

Returns: bool
Returns: bool

this.IsExpr

Full Usage: this.IsExpr

Returns: bool
Returns: bool

this.IsIdentifier

Full Usage: this.IsIdentifier

Returns: bool
Returns: bool

this.IsIndexExpr

Full Usage: this.IsIndexExpr

Returns: bool
Returns: bool

Type something to start searching.