Click or drag to resize

SyntaxAnnotation Class



A SyntaxAnnotation is used to annotate syntax elements with additional information. Since syntax elements are immutable, annotating them requires creating new instances of them with the annotations attached.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisSyntaxAnnotation

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class SyntaxAnnotation : IEquatable

The SyntaxAnnotation type exposes the following members.

Constructors
  NameDescription
Public methodSyntaxAnnotation
Initializes a new instance of the SyntaxAnnotation class
Public methodSyntaxAnnotation(String)
Initializes a new instance of the SyntaxAnnotation class
Public methodSyntaxAnnotation(String, String)
Initializes a new instance of the SyntaxAnnotation class
Top
Properties
  NameDescription
Public propertyData
Public propertyStatic memberElasticAnnotation
A predefined syntax annotation that indicates whether the syntax element has elastic trivia.
Public propertyKind
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Public operatorStatic memberInequality
Top
See Also