VisualBasicSyntaxTree.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.
Creates a new syntax based off this tree using a new source text.
public:
override Microsoft::CodeAnalysis::SyntaxTree ^ WithChangedText(Microsoft::CodeAnalysis::Text::SourceText ^ newText);
public override Microsoft.CodeAnalysis.SyntaxTree WithChangedText (Microsoft.CodeAnalysis.Text.SourceText newText);
override this.WithChangedText : Microsoft.CodeAnalysis.Text.SourceText -> Microsoft.CodeAnalysis.SyntaxTree
Public Overrides Function WithChangedText (newText As SourceText) As SyntaxTree
Parameters
- newText
- SourceText
Returns
Remarks
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.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET