LinkedEditGroup class

A collection of positions that should be linked (edited simultaneously) for the purposes of updating code after a source change. For example, if a set of edits introduced a new variable name, the group would contain all of the positions of the variable name so that if the client wanted to let the user edit the variable name after the operation, all occurrences of the name could be edited simultaneously.

Edit groups may have a length of 0 and function as tabstops where there is no default text, for example, an edit that inserts an if statement might provide an empty group between parens where a condition should be typed. For this reason, it's also valid for a group to contain only a single position that is not linked to others.

Constructors

LinkedEditGroup(List<Position> positions, int length, List<LinkedEditSuggestion> suggestions)

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The length of the regions that should be edited simultaneously.
final
positions List<Position>
The positions of the regions (after applying the relevant edits) that should be edited simultaneously.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suggestions List<LinkedEditSuggestion>
Pre-computed suggestions for what every region might want to be changed to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map m) LinkedEditGroup