Vixen
dd8b0a81

UsingDirectiveSyntax

class
csharp
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 UsingKeyword
  • public SyntaxToken? StaticKeyword

    The static in @using static System.Math, which makes Name a type whose static members are imported rather than a namespace.

  • public SyntaxToken? Alias

    The 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? EqualsToken
  • public SyntaxToken Name

    A dotted namespace — or, with an alias, the type or namespace it names — carried whole as one token.

Methods (9)

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