RowsSyntax
csharp
public sealed class RowsSyntax@rows (var index in Count) { <row> … </row> } — a virtualizing control's row template, built once per pool slot rather than once per item.
Remarks
This node is associated with the following syntax kinds:
Rows
Fields and properties (8)
public SyntaxToken RowsKeywordpublic SyntaxToken OpenParenTokenpublic SyntaxToken VarKeywordpublic SyntaxToken IdentifierThe name bound to the item index the slot is showing. ⚠ A Signal<int>, and for a sharper reason than @for's index: a slot's body runs once and is rebound by writing this, so a captured int would draw the item the slot showed when the pool grew, for ever.
public SyntaxToken InKeywordpublic SyntaxToken CountHow many items there are — an int, re-read whenever what it reads changes.
public SyntaxToken CloseParenTokenpublic MarkupBlockSyntax BodyExactly one plain element, which is the slot: its tag is what every pool slot is created under, and its attributes and children are applied to each one.
Methods (12)
public override SyntaxNode? GetSlot(int index)public override void Accept(SyntaxVisitor visitor)public override TResult Accept<TResult>(SyntaxVisitor<TResult> visitor)public RowsSyntax Update(SyntaxToken rowsKeyword, SyntaxToken openParenToken, SyntaxToken varKeyword, SyntaxToken identifier, SyntaxToken inKeyword, SyntaxToken count, SyntaxToken closeParenToken, MarkupBlockSyntax body)public RowsSyntax WithRowsKeyword(SyntaxToken rowsKeyword)public RowsSyntax WithOpenParenToken(SyntaxToken openParenToken)public RowsSyntax WithVarKeyword(SyntaxToken varKeyword)public RowsSyntax WithIdentifier(SyntaxToken identifier)public RowsSyntax WithInKeyword(SyntaxToken inKeyword)public RowsSyntax WithCount(SyntaxToken count)public RowsSyntax WithCloseParenToken(SyntaxToken closeParenToken)public RowsSyntax WithBody(MarkupBlockSyntax body)
Used by (8)
- BinderVixen.Ui.Markup
- ParserTestsVixen.Ui.Markup.Tests
- RowsSyntaxVixen.Ui.Markup
- SyntaxFactoryVixen.Ui.Markup
- SyntaxRewriterVixen.Ui.Markup
- SyntaxVisitorVixen.Ui.Markup
- SyntaxVisitorVixen.Ui.Markup
- VxmlParserVixen.Ui.Markup