Ejemplo n.º 1
0
        protected TNode AddTrailingSkippedSyntax <TNode>(TNode node, CSharpSyntaxNode skippedSyntax) where TNode : CSharpSyntaxNode
        {
            var token = node as SyntaxToken;

            if (token != null)
            {
                return((TNode)(object)AddSkippedSyntax(token, skippedSyntax, trailing: true));
            }
            else
            {
                var lastToken = node.GetLastToken();
                var newToken  = AddSkippedSyntax(lastToken, skippedSyntax, trailing: true);
                return(SyntaxLastTokenReplacer.Replace(node, newToken));
            }
        }