共用方式為


SyntaxTree.WithChangedText(SourceText) 方法

定義

使用新的源文字,根據此樹狀結構建立新的語法樹狀結構。

如果新的源文字是目前源文字的次要變更,累加剖析就會重複使用大部分目前的語法樹狀結構內部資料。 否則,將會使用新的原始程式文字進行完整剖析。

public:
 abstract Microsoft::CodeAnalysis::SyntaxTree ^ WithChangedText(Microsoft::CodeAnalysis::Text::SourceText ^ newText);
public abstract Microsoft.CodeAnalysis.SyntaxTree WithChangedText (Microsoft.CodeAnalysis.Text.SourceText newText);
abstract member WithChangedText : Microsoft.CodeAnalysis.Text.SourceText -> Microsoft.CodeAnalysis.SyntaxTree
Public MustOverride Function WithChangedText (newText As SourceText) As SyntaxTree

參數

newText
SourceText

傳回

適用於