[gnome-builder] vala: whitespace cleanup



commit 84bbc8a03a3ff724b1833c555d535548ca98075d
Author: Christian Hergert <chergert redhat com>
Date:   Sun Oct 18 09:24:10 2015 -0700

    vala: whitespace cleanup

 .../vala-pack/ide-vala-completion-provider.vala    |    4 +-
 plugins/vala-pack/ide-vala-index.vala              |   45 ++++++++++----------
 2 files changed, 24 insertions(+), 25 deletions(-)
---
diff --git a/plugins/vala-pack/ide-vala-completion-provider.vala 
b/plugins/vala-pack/ide-vala-completion-provider.vala
index b4ca166..62646ee 100644
--- a/plugins/vala-pack/ide-vala-completion-provider.vala
+++ b/plugins/vala-pack/ide-vala-completion-provider.vala
@@ -76,7 +76,7 @@ namespace Ide
                        context.cancelled.connect(() => {
                                cancellable.cancel ();
                        });
-                       
+
                        Ide.ThreadPool.push (Ide.ThreadPoolKind.INDEXER, () => {
                                int res_line = -1;
                                int res_column = -1;
@@ -87,7 +87,7 @@ namespace Ide
                                                   unsaved_files,
                                                   this,
                                                   cancellable,
-                                                  out res_line, 
+                                                  out res_line,
                                                   out res_column);
                                        if (res_line > 0 && res_column > 0) {
                                        this.line = res_line - 1;
diff --git a/plugins/vala-pack/ide-vala-index.vala b/plugins/vala-pack/ide-vala-index.vala
index 676b6f3..6297b92 100644
--- a/plugins/vala-pack/ide-vala-index.vala
+++ b/plugins/vala-pack/ide-vala-index.vala
@@ -169,39 +169,38 @@ namespace Ide
                }
 
                public Ide.CompletionResults code_complete (GLib.File file,
-                                                                 int line,
-                                                                 int column,
-                                                                 string? line_text,
-                                                                 Ide.UnsavedFiles? unsaved_files,
-                                                                 Ide.ValaCompletionProvider provider,
-                                                                 GLib.Cancellable? cancellable,
-                                                                 out int result_line,
-                                                                 out int result_column)
+                                                           int line,
+                                                           int column,
+                                                           string? line_text,
+                                                           Ide.UnsavedFiles? unsaved_files,
+                                                           Ide.ValaCompletionProvider provider,
+                                                           GLib.Cancellable? cancellable,
+                                                           out int result_line,
+                                                           out int result_column)
                {
                        var unsaved_files_copy = unsaved_files.to_array ();
                        var result = new Ide.CompletionResults (provider.query);
 
                        if ((cancellable == null) || !cancellable.is_cancelled ()) {
-                                       lock (this.code_context) {
-                                               Vala.CodeContext.push (this.code_context);
+                               lock (this.code_context) {
+                                       Vala.CodeContext.push (this.code_context);
 
-                                               this.apply_unsaved_files (unsaved_files_copy);
-                                               this.reparse ();
-                                               this.code_context.check ();
+                                       this.apply_unsaved_files (unsaved_files_copy);
+                                       this.reparse ();
+                                       this.code_context.check ();
 
-                                               if (this.source_files.contains (file)) {
-                                                       var source_file = this.source_files [file];
-                                                       string? text = (line_text == null) ? 
source_file.get_source_line (line) : line_text;
-                                                       var locator = new Ide.ValaLocator ();
-                                                       var nearest = locator.locate (source_file, line, 
column);
+                                       if (this.source_files.contains (file)) {
+                                               var source_file = this.source_files [file];
+                                               string? text = (line_text == null) ? 
source_file.get_source_line (line) : line_text;
+                                               var locator = new Ide.ValaLocator ();
+                                               var nearest = locator.locate (source_file, line, column);
 
-                                                       this.add_completions (source_file, ref line, ref 
column, text, nearest, result, provider);
-                                               }
-
-                                               Vala.CodeContext.pop ();
+                                               this.add_completions (source_file, ref line, ref column, 
text, nearest, result, provider);
                                        }
-                               }
 
+                                       Vala.CodeContext.pop ();
+                               }
+                       }
 
                        result_line = line;
                        result_column = column;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]