~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to contrib/ICSharpCode.NRefactory.CSharp/Refactoring/DocumentScript.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-06-22 20:35:35 UTC
  • mfrom: (10.3.2)
  • Revision ID: package-import@ubuntu.com-20120622203535-zrozwvcf6kfk6l6i
Tags: 3.0.3.2+dfsg-1
* [3fd89ae] Imported Upstream version 3.0.3.2+dfsg
* [379a680] Remove old patches we haven't used for ages from git.
* [d71161d] Remove correct_paths_in_monodevelop-core-addins.pc.patch.
  Upstream claim to have fixed this by moving assembly install locations.
* [15dbfb9] Fix install location for MonoDevelop.Gettext.dll.config.
* [26eb434] Fix install location for MonoDevelop.SourceEditor2.dll.config.
* [4169974] Upstream commit 53282c9 which finally reconciles the 
  MonoDevelop.Gettext.dll install location with the 
  monodevelop-core-addins.pc location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                }
40
40
                readonly IDisposable undoGroup;
41
41
 
42
 
                readonly TextEditorOptions options;
43
 
                
44
 
                public DocumentScript(IDocument document, CSharpFormattingOptions formattingOptions, TextEditorOptions options) : base(formattingOptions)
 
42
 
 
43
                public DocumentScript(IDocument document, CSharpFormattingOptions formattingOptions, TextEditorOptions options) : base(formattingOptions, options)
45
44
                {
46
45
                        this.originalDocument = document.CreateDocumentSnapshot();
47
46
                        this.currentDocument = document;
48
 
                        this.options = options;
49
 
                        this.eolMarker = options.EolMarker;
50
47
                        Debug.Assert(currentDocument.Version.CompareAge(originalDocument.Version) == 0);
51
48
                        this.undoGroup = document.OpenUndoGroup();
52
49
                }
102
99
                {
103
100
                        var segment = GetSegment(node);
104
101
                        var cu = CompilationUnit.Parse(currentDocument, "dummy.cs");
105
 
                        var formatter = new AstFormattingVisitor(FormattingOptions, currentDocument, options);
 
102
                        var formatter = new AstFormattingVisitor(FormattingOptions, currentDocument, Options);
106
103
                        cu.AcceptVisitor(formatter);
107
104
                        formatter.ApplyChanges(segment.Offset, segment.Length);
108
105
                }