Beispiel #1
0
 internal static ModeArgument CreateSubstituteArgument(
     SnapshotSpan span,
     SnapshotLineRange?range = null,
     SubstituteData data     = null)
 {
     range = range ?? SnapshotLineRangeUtil.CreateForSnapshot(span.Snapshot);
     data  = data ?? new SubstituteData("a", "b", SubstituteFlags.None);
     return(ModeArgument.NewSubstitute(span, range.Value, data));
 }
Beispiel #2
0
        internal static ModeArgument CreateSubstituteArgument(
            SnapshotSpan span,
            string search,
            string replace,
            SubstituteFlags?flags   = null,
            SnapshotLineRange?range = null)
        {
            range = range ?? SnapshotLineRangeUtil.CreateForSnapshot(span.Snapshot);
            var data = new SubstituteData(search, replace, flags ?? SubstituteFlags.None);

            return(ModeArgument.NewSubstitute(span, range.Value, data));
        }