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
使用附加的指定批註,建立與這個節點相同的新節點。
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
使用附加的指定批註,建立與這個節點相同的新節點。
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