Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.CodeAnalysis
  3. SyntaxTrivia
  4. GetDiagnostics()
  • SyntaxTrivia
    • ContainsDiagnostics
    • FullSpan
    • HasStructure
    • IsDirective
    • Language
    • RawKind
    • Span
    • SpanStart
    • SyntaxTree
    • Token
    • CopyAnnotationsTo(SyntaxTrivia)
    • Equals(Object)
    • Equals(SyntaxTrivia)
    • GetAnnotations(String)
    • GetAnnotations(String[])
    • GetDiagnostics()
    • GetHashCode()
    • GetLocation()
    • GetStructure()
    • HasAnnotation(SyntaxAnnotation)
    • HasAnnotations(String)
    • HasAnnotations(String[])
    • IsEquivalentTo(SyntaxTrivia)
    • IsPartOfStructuredTrivia()
    • ToFullString()
    • ToString()
    • WithAdditionalAnnotations(SyntaxAnnotation[])
    • WithAdditionalAnnotations(IEnumerable<SyntaxAnnotation>)
    • WithoutAnnotations(String)
    • WithoutAnnotations(SyntaxAnnotation[])
    • WithoutAnnotations(IEnumerable<SyntaxAnnotation>)
    • WriteTo(TextWriter)
    • operator !=(SyntaxTrivia, SyntaxTrivia)
    • operator ==(SyntaxTrivia, SyntaxTrivia)
    • IsKind(SyntaxTrivia, SyntaxKind)
    • Kind(SyntaxTrivia)
netcoreapp2.0
namespace Microsoft.CodeAnalysis
{
    [DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
    public struct SyntaxTrivia : IEquatable<SyntaxTrivia>
    {
        public IEnumerable<Diagnostic> GetDiagnostics();
    }
}
.NET
5.06.07.08.09.010.0
.NET Core
2.02.12.23.03.1
.NET Framework
4.6.14.6.24.74.7.14.7.24.84.8.1
.NET Standard
2.02.1
Information specific to netcoreapp2.0
Assembly

Microsoft.CodeAnalysis , Version=2.3.0.0, PublicKeyToken=31bf3856ad364e35

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙