예제 #1
0
 public static ElementStartTagSyntax Create(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     GreaterThanToken greaterThan)
 {
     return(new ElementStartTagSyntax(lessThan, name, attributes, greaterThan));
 }
예제 #2
0
 public static ElementEndTagSyntax Create(
     LessThanToken lessThan,
     SlashToken slash,
     NameToken name,
     GreaterThanToken greaterThan)
 {
     return(new ElementEndTagSyntax(lessThan, slash, name, greaterThan));
 }
예제 #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));
 }
예제 #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)));
        }
예제 #5
0
 ElementStartTagSyntax(
     LessThanToken lessThan,
     NameToken name,
     IImmutableList <AttributeSyntaxBase> attributes,
     GreaterThanToken greaterThan)
 {
     LessThan    = lessThan;
     Name        = name;
     Attributes  = attributes;
     GreaterThan = greaterThan;
 }
예제 #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));
 }
예제 #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));
 }
예제 #8
0
 protected virtual SyntaxToken VisitGreaterThan(GreaterThanToken token)
 {
     return(token);
 }