Esempio n. 1
0
 public static ElementStartTagSyntax Create(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     GreaterThanToken greaterThan)
 {
     return(new ElementStartTagSyntax(lessThan, name, attributes, greaterThan));
 }
Esempio n. 2
0
 public static ElementEndTagSyntax Create(
     LessThanToken lessThan,
     SlashToken slash,
     NameToken name,
     GreaterThanToken greaterThan)
 {
     return(new ElementEndTagSyntax(lessThan, slash, name, greaterThan));
 }
Esempio n. 3
0
 public static EmptyElementSyntax Create(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     SlashToken slash,
     GreaterThanToken greaterThan)
 {
     return(new EmptyElementSyntax(lessThan, name, attributes, slash, greaterThan));
 }
Esempio n. 4
0
        protected override SyntaxBase VisitElementStartTag(ElementStartTagSyntax syntax)
        {
            var attributes = VisitAttributes(syntax.Attributes);

            return(ElementStartTagSyntax.Create(
                       LessThanToken.Create(TriviaSyntax.Empty, TriviaSyntax.Empty),
                       syntax.Name.WithTrivia(TriviaSyntax.Empty, TriviaSyntax.Empty),
                       attributes,
                       GreaterThanToken.Create(TriviaSyntax.Empty, TriviaSyntax.Empty)));
        }
Esempio n. 5
0
 ElementStartTagSyntax(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     GreaterThanToken greaterThan)
 {
     LessThan    = lessThan;
     Name        = name;
     Attributes  = attributes;
     GreaterThan = greaterThan;
 }
Esempio n. 6
0
 EmptyElementSyntax(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     SlashToken slash,
     GreaterThanToken greaterThan)
 {
     LessThan    = lessThan ?? throw new ArgumentNullException(nameof(lessThan));
     Name        = name ?? throw new ArgumentNullException(nameof(name));
     Attributes  = attributes ?? throw new ArgumentNullException(nameof(attributes));
     Slash       = slash ?? throw new ArgumentNullException(nameof(slash));
     GreaterThan = greaterThan ?? throw new ArgumentNullException(nameof(greaterThan));
 }
Esempio n. 7
0
 ElementEndTagSyntax(LessThanToken lessThan, SlashToken slash, NameToken name, GreaterThanToken greaterThan)
 {
     LessThan    = lessThan ?? throw new ArgumentNullException(nameof(lessThan));
     Slash       = slash ?? throw new ArgumentNullException(nameof(slash));
     Name        = name ?? throw new ArgumentNullException(nameof(name));
     GreaterThan = greaterThan ?? throw new ArgumentNullException(nameof(greaterThan));
 }
Esempio n. 8
0
 protected virtual SyntaxToken VisitGreaterThan(GreaterThanToken token)
 {
     return(token);
 }