[gnome-code-assistance/wip/vala] [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/wip/vala] [backends/vala] Make sure to push/pop codecontext
- Date: Wed, 4 Dec 2013 18:08:12 +0000 (UTC)
commit 5d4dfbc8d17f10b39b5a7556956d7936b7e63123
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]