/// <summary>
 /// Creates a new <see cref="SyntaxNodeOrTokenList"/> with the specified node or token added to the end.
 /// </summary>
 /// <param name="nodeOrToken">The node or token to add.</param>
 public SyntaxNodeOrTokenList Add(SyntaxNodeOrToken nodeOrToken)
 {
     return(Insert(this.Count, nodeOrToken));
 }
Beispiel #2
0
 /// <summary>
 /// Gets a list of all the diagnostics in either the sub tree that has the specified node as its root or
 /// associated with the token and its related trivia.
 /// This method does not filter diagnostics based on #pragmas and compiler options
 /// like nowarn, warnaserror etc.
 /// </summary>
 public abstract IEnumerable <Diagnostic> GetDiagnostics(SyntaxNodeOrToken nodeOrToken);