CxStatement

Description

abstract class Tinman.Core.Cx.Statements.CxStatement

Abstract base for classes that represent a Code-X statement.

Public / Constructors

From​Source


public static method FromSource → (1)

source in : string

[not-null]
The source code.

returns → CxStatement

The parsed statement.

Parses the given statement.

ValidatingException

If the syntax of source in is invalid.

See also

CxCodeUnit

Public / Methods

As​Block


public virtual method AsBlock → ()

returns → CxStatementBlock

The wrapping block statement (may be this).

Wraps this statement in a block, if necessary.

As​Method

2 overloads


public method AsMethod1 → (1)

name opt : string = null

The method name. If null, 'MyMethod' will be used.

returns → CxMemberMethod

The wrapping method.

Wraps this statement in a method.

ValidatingException

If the name opt is invalid.


public method AsMethod2 → (1)

name in : CxId

The method name.

returns → CxMemberMethod

The wrapping method.

Wraps this statement in a method.