Open sandboxFocus

Class TestSyntaxTree

Represents the test results for a syntax tree in TestResult.

Inheritance
TestSyntaxTree
Namespace: Metalama.Testing.AspectTesting
Assembly: Metalama.Testing.AspectTesting.dll
Syntax
public sealed class TestSyntaxTree

Properties

Name Description
ActualTransformedCodePath
ActualTransformedNormalizedCodeText
ActualTransformedSourceTextForStorage
AnnotatedSyntaxRoot

Gets or sets the root SyntaxNode for the annotated syntax tree (before transformation). This is useful for syntax highlighting.

ExpectedTransformedCodePath
ExpectedTransformedCodeText
FilePath

Gets the file path of the syntax tree. For input syntax trees, this is an absolute path of the input document. For introduced syntax trees, this is a relative path under which the syntax tree was introduced.

HtmlInputPath
HtmlOutputPath
InputDocument

Gets the input Document. For introduced syntax trees, this is null.

InputPath

Gets the input path from which the syntax tree was loaded. For introduced syntax trees, this is null.

InputSyntaxTree

Gets the input SyntaxTree. For introduced syntax trees, this is null.

Kind
OutputCompileTimePath

Gets the full path of the code for the output compile-time syntax tree.

OutputCompileTimeSyntaxRoot

Gets the root SyntaxNode of the output compile-time syntax tree.

OutputDocument

Gets the output document.

OutputRunTimeSyntaxRoot

Gets the root SyntaxNode of the output run-time syntax tree.

OutputRunTimeSyntaxTreeForComparison
ShortName

Gets the filename without extension of the syntax tree, shortened if its total length exceeds 20 characters.

Methods

Name Description
ToString()

Extension Methods