SyntaxTree.WithChangedText(SourceText) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new syntax tree based off this tree using a new source text.
If the new source text is a minor change from the current source text an incremental parse will occur reusing most of the current syntax tree internal data. Otherwise, a full parse will occur using the new source text.
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
Parameters
- newText
- SourceText
Returns
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.