public override SyntaxNode VisitXmlDeclaration(XmlDeclarationSyntax node) { bool anyChanges = false; var newLessThanQuestionToken = ((PunctuationSyntax)Visit(node.LessThanQuestionToken)); if (node.LessThanQuestionToken != newLessThanQuestionToken) { anyChanges = true; } var newXmlKeyword = ((KeywordSyntax)Visit(node.XmlKeyword)); if (node.XmlKeyword != newXmlKeyword) { anyChanges = true; } var newVersion = ((XmlDeclarationOptionSyntax)Visit(node.Version)); if (node.Version != newVersion) { anyChanges = true; } var newEncoding = ((XmlDeclarationOptionSyntax)Visit(node.Encoding)); if (node.Encoding != newEncoding) { anyChanges = true; } var newStandalone = ((XmlDeclarationOptionSyntax)Visit(node.Standalone)); if (node.Standalone != newStandalone) { anyChanges = true; } var newQuestionGreaterThanToken = ((PunctuationSyntax)Visit(node.QuestionGreaterThanToken)); if (node.QuestionGreaterThanToken != newQuestionGreaterThanToken) { anyChanges = true; } if (anyChanges) { return(XmlDeclaration( newLessThanQuestionToken, newXmlKeyword, newVersion, newEncoding, newStandalone, newQuestionGreaterThanToken)); } else { return(node); } }
public static XmlDocumentSyntax XmlDocument( XmlDeclarationSyntax prologue, SyntaxList <SyntaxNode> precedingMisc, XmlNodeSyntax body, SyntaxList <XmlNodeSyntax> followingMisc, SyntaxToken eof) { return(new XmlDocumentSyntax(SyntaxKind.XmlDocument, prologue, precedingMisc.Node, body, followingMisc.Node, eof)); }
public static XmlDocumentSyntax XmlDocument( XmlDeclarationSyntax prologue, SyntaxList<SyntaxNode> precedingMisc, XmlNodeSyntax body, SyntaxList<XmlNodeSyntax> followingMisc, SyntaxToken eof) { return new XmlDocumentSyntax(SyntaxKind.XmlDocument, prologue, precedingMisc.Node, body, followingMisc.Node, eof); }
public static XmlDocumentSyntax XmlDocument( XmlDeclarationSyntax prologue, SyntaxList <SyntaxNode> precedingMisc, XmlNodeSyntax body, SyntaxList <XmlNodeSyntax> followingMisc, SkippedTokensTriviaSyntax skippedTokens, SyntaxToken eof) { return(XmlDocument(prologue, precedingMisc.Node, body, followingMisc.Node, skippedTokens, eof)); }
public XmlDocumentSyntax( SyntaxKind kind, XmlDeclarationSyntax prologue, SyntaxNode precedingMisc, XmlNodeSyntax body, SyntaxNode followingMisc, SyntaxToken eof) : base(kind) { this.Prologue = prologue; this.PrecedingMisc = precedingMisc; this.Body = body; this.FollowingMisc = followingMisc; this.Eof = eof; SlotCount = 5; }
public static XmlDocumentSyntax XmlDocument( XmlDeclarationSyntax prologue, SyntaxNode precedingMisc, XmlNodeSyntax body, SyntaxNode followingMisc, SkippedTokensTriviaSyntax skippedTokens, SyntaxToken eof) { return((XmlDocumentSyntax) new XmlDocumentSyntax.Green(prologue?.GreenNode, precedingMisc?.GreenNode, body?.GreenNode, followingMisc?.GreenNode, skippedTokens?.GreenNode, eof?.GreenNode).CreateRed()); }
public virtual SyntaxNode VisitXmlDeclaration(XmlDeclarationSyntax node) { return(VisitSyntaxNode(node)); }
public virtual SyntaxNode VisitXmlDeclaration(XmlDeclarationSyntax node) { return VisitSyntaxNode(node); }