Пример #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));
 }
Пример #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));
        }
Пример #3
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.NewSubsitute(span, range, data);
 }
Пример #4
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.NewSubsitute(span, range, data);
 }