UsingDirectiveSyntax
public sealed class UsingDirectiveSyntax@using Vixen.Ui.Controls, @using Prefab = A.B.Prefab or @using static System.Math — copied verbatim into the generated file.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The alias is stored ahead of the name, not instead of it. Held as one Name that meant the alias when there was one, every reader of a using had to know which shape it was looking at — and the emitter, which does not, wrote using Prefab; for the aliased form and left the author with a CS0246 on a line they never typed.
Fields and properties (5)
public SyntaxToken UsingKeywordpublic SyntaxToken? StaticKeywordThe static in @using static System.Math, which makes Name a type whose static members are imported rather than a namespace.
public SyntaxToken? AliasThe name on the left of the = in @using Prefab = A.B.Prefab. Absent for a plain import, which is what makes Name mean the same thing either way.
public SyntaxToken? EqualsTokenpublic SyntaxToken NameA dotted namespace — or, with an alias, the type or namespace it names — carried whole as one token.
Methods (9)
public override SyntaxNode? GetSlot(int index)public override void Accept(SyntaxVisitor visitor)public override TResult Accept<TResult>(SyntaxVisitor<TResult> visitor)public UsingDirectiveSyntax Update(SyntaxToken usingKeyword, SyntaxToken? staticKeyword, SyntaxToken? alias, SyntaxToken? equalsToken, SyntaxToken name)public UsingDirectiveSyntax WithUsingKeyword(SyntaxToken usingKeyword)public UsingDirectiveSyntax WithStaticKeyword(SyntaxToken staticKeyword)public UsingDirectiveSyntax WithAlias(SyntaxToken alias)public UsingDirectiveSyntax WithEqualsToken(SyntaxToken equalsToken)public UsingDirectiveSyntax WithName(SyntaxToken name)
Used by (9)
- BinderVixen.Ui.Markup
- DocumentSyntaxVixen.Ui.Markup
- ParserTestsVixen.Ui.Markup.Tests
- SyntaxFactoryVixen.Ui.Markup
- SyntaxRewriterVixen.Ui.Markup
- SyntaxVisitorVixen.Ui.Markup
- SyntaxVisitorVixen.Ui.Markup
- UsingDirectiveSyntaxVixen.Ui.Markup
- VxmlParserVixen.Ui.Markup