Table of Contents

Class ControlTokenExtensions

Namespace
Albatross.Expression.Nodes
Assembly
Albatross.Expression.dll

Provides extension methods for identifying different types of control tokens.

public static class ControlTokenExtensions
Inheritance
ControlTokenExtensions
Inherited Members

Methods

IsComma(IToken)

Determines whether the token is a comma separator.

public static bool IsComma(this IToken token)

Parameters

token IToken

The token to check.

Returns

bool

True if the token is a comma.

IsFuncParamStart(IToken, bool)

Determines whether the token marks the start of function parameters.

public static bool IsFuncParamStart(this IToken token, bool value = true)

Parameters

token IToken

The token to check.

value bool

The expected result (defaults to true).

Returns

bool

True if the token marks function parameter start and matches the expected value.

IsLeftParenthesis(IToken, bool)

Determines whether the token is a left parenthesis.

public static bool IsLeftParenthesis(this IToken token, bool value = true)

Parameters

token IToken

The token to check.

value bool

The expected result (defaults to true).

Returns

bool

True if the token is a left parenthesis and matches the expected value.

IsRightParenthesis(IToken)

Determines whether the token is a right parenthesis.

public static bool IsRightParenthesis(this IToken token)

Parameters

token IToken

The token to check.

Returns

bool

True if the token is a right parenthesis.