CxStatementComment

Description

sealed class Tinman.Core.Cx.Statements.CxStatementComment

Derived from

CxStatement abstract

One or more adjacent line-comments in a statement block that are exposed to the PSI model:

// 1st line of 1st comment
// 2nd line of 1st comment
//
// 3rd line of 1st comment, after empty line
...
// TAG: 1st line of 2nd comment (may have semantic tag)
//      2nd line of 2nd comment

The semantic tag (see Semantic) can be used to attach additional semantics to a comment, for example Native.

Public / Constants

Native


public constant Native → ("NATIVE":string)

Prefix of a single-line comment before a CxStatementCode.

The comment text is the description of the purpose of the native code block.

Public / Constructors

Cx​Statement​Comment


public constructor CxStatementComment → (2)

comment in : Text

[not-null]
See Comment.

semantic opt : CxId = default(CxId)

See Semantic.

Creates a new instance of CxStatementComment.

Public / Attributes

Comment


[Constant]
public attribute Comment → (get)

value : Text

[not-null]
The comment text.

Returns the comment text.

Semantic


[Constant]
public attribute Semantic → (get)

value : CxId

The semantic tag, for example "TAG" for the comment // TAG : Hello World!. Will be CxId.Invalid iff no tag specifier is present.

Returns the semantic tag of this comment.