This class acts as a more detailed version of the TextChanged class that is better suited for our purposes
More...
|
|
override string | ToString () |
| |
|
| static IEnumerable< Diff > | Compare (SyntaxTree ancestor, SyntaxTree changed) |
| | Generates Diff results for each change that occurred from the ancestor to the changed More...
|
| |
| static bool | Intersects (Diff diff1, Diff diff2) |
| | Determine if the two diffs overlap More...
|
| |
| static string | VisualDiff (SyntaxTree ancestor, SyntaxTree changed) |
| | Get a string that represents the differences in the file in a way that is readable More...
|
| |
| static string | VisualDiff (IEnumerable< Diff > diffs, SyntaxTree ancestor) |
| | Get a string that represents the differences in the file in a way that is readable More...
|
| |
| static bool | IntersectsAny (Diff diff, IEnumerable< Diff > diffs) |
| | Determines if a single diff intersects with any number of other diffs More...
|
| |
|
|
int | OffsetEnd => Changed.Span.End - Ancestor.Span.End |
| |
|
int | OffsetStart => Changed.Span.Start - Ancestor.Span.Start |
| |
This class acts as a more detailed version of the TextChanged class that is better suited for our purposes
| static IEnumerable<Diff> SemDiff.Core.Diff.Compare |
( |
SyntaxTree |
ancestor, |
|
|
SyntaxTree |
changed |
|
) |
| |
|
static |
Generates Diff results for each change that occurred from the ancestor to the changed
- Parameters
-
| ancestor | The abstract syntax tree that the changed version originated from |
| changed | The abstract syntax tree that resulted from changing the ancestor |
- Returns
- Changes between the ancestor and changed
| static bool SemDiff.Core.Diff.Intersects |
( |
Diff |
diff1, |
|
|
Diff |
diff2 |
|
) |
| |
|
static |
Determine if the two diffs overlap
- Parameters
-
| diff1 | One of the objects to test |
| diff2 | One of the objects to test |
- Returns
- true if the diffs overlap else false
| static bool SemDiff.Core.Diff.IntersectsAny |
( |
Diff |
diff, |
|
|
IEnumerable< Diff > |
diffs |
|
) |
| |
|
static |
Determines if a single diff intersects with any number of other diffs
- Parameters
-
| diff | single diff that will be compared against many |
| diffs | multiple diffs that will be compared against a single diff |
- Returns
- true if an intersection occurs else false
| static string SemDiff.Core.Diff.VisualDiff |
( |
SyntaxTree |
ancestor, |
|
|
SyntaxTree |
changed |
|
) |
| |
|
static |
Get a string that represents the differences in the file in a way that is readable
- Parameters
-
| ancestor | SyntaxTree that changed was modified from |
| changed | SyntaxTree that contains the changes |
- Returns
- a string that can be inspected to see the changes
| static string SemDiff.Core.Diff.VisualDiff |
( |
IEnumerable< Diff > |
diffs, |
|
|
SyntaxTree |
ancestor |
|
) |
| |
|
static |
Get a string that represents the differences in the file in a way that is readable
- Parameters
-
| ancestor | SyntaxTree that changed was modified from |
| diffs | all the changes to the ancestor |
- Returns
- a string that can be inspected to see the changes
The documentation for this class was generated from the following file: