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