[gnome-code-assistance] [backends/vala] Make sure to push/pop codecontext
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/vala] Make sure to push/pop codecontext
- Date: Wed, 4 Dec 2013 18:09:12 +0000 (UTC)
commit 3b8056153c07e3805aa9fc674fa285b93580a7a8
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Dec 4 19:01:43 2013 +0100
[backends/vala] Make sure to push/pop codecontext
backends/vala/helper.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/backends/vala/helper.vala b/backends/vala/helper.vala
index e9b9b88..8768a76 100644
--- a/backends/vala/helper.vala
+++ b/backends/vala/helper.vala
@@ -66,6 +66,8 @@ class Helper
private static void parse(ParserOptions opts)
{
+ CodeContext.push(opts.context);
+
var parser = new Parser();
parser.parse(opts.context);
@@ -76,6 +78,8 @@ class Helper
{
opts.context.check();
}
+
+ CodeContext.pop();
}
private static void extract_diagnostics(ParserOptions opts, Rpc.Document[] docs)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]