AnnotationExtensions.WithAdditionalAnnotations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
WithAdditionalAnnotations<TNode>(TNode, SyntaxAnnotation[]) |
使用附加的指定批注创建与此节点相同的新节点。 |
WithAdditionalAnnotations<TNode>(TNode, IEnumerable<SyntaxAnnotation>) |
使用附加的指定批注创建与此节点相同的新节点。 |
WithAdditionalAnnotations<TNode>(TNode, SyntaxAnnotation[])
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
使用附加的指定批注创建与此节点相同的新节点。
public:
generic <typename TNode>
where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
static TNode WithAdditionalAnnotations(TNode node, ... cli::array <Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public static TNode WithAdditionalAnnotations<TNode> (this TNode node, params Microsoft.CodeAnalysis.SyntaxAnnotation[] annotations) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member WithAdditionalAnnotations : 'Node * Microsoft.CodeAnalysis.SyntaxAnnotation[] -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithAdditionalAnnotations(Of TNode As SyntaxNode) (node As TNode, ParamArray annotations As SyntaxAnnotation()) As TNode
类型参数
- TNode
参数
- node
- TNode
原始节点。
- annotations
- SyntaxAnnotation[]
要添加到新节点的注释。
返回
TNode
适用于
WithAdditionalAnnotations<TNode>(TNode, IEnumerable<SyntaxAnnotation>)
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
- Source:
- AnnotationExtensions.cs
使用附加的指定批注创建与此节点相同的新节点。
public:
generic <typename TNode>
where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
static TNode WithAdditionalAnnotations(TNode node, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ annotations);
public static TNode WithAdditionalAnnotations<TNode> (this TNode node, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> annotations) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member WithAdditionalAnnotations : 'Node * seq<Microsoft.CodeAnalysis.SyntaxAnnotation> -> 'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function WithAdditionalAnnotations(Of TNode As SyntaxNode) (node As TNode, annotations As IEnumerable(Of SyntaxAnnotation)) As TNode
类型参数
- TNode
参数
- node
- TNode
原始节点。
- annotations
- IEnumerable<SyntaxAnnotation>
要添加到新节点的注释。
返回
TNode