[vala] Fix names of methods generated from lambda expressions
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] Fix names of methods generated from lambda expressions
- Date: Sun, 12 Apr 2009 15:38:22 -0400 (EDT)
commit 071ec576fc4739c187e1c48d4f8430c5c2ce5c99
Author: Jürg Billeter <j bitron ch>
Date: Sun Apr 12 21:37:27 2009 +0200
Fix names of methods generated from lambda expressions
---
vala/valalambdaexpression.vala | 2 +-
vala/valasemanticanalyzer.vala | 2 --
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/vala/valalambdaexpression.vala b/vala/valalambdaexpression.vala
index 1dded79..b7bb1f3 100644
--- a/vala/valalambdaexpression.vala
+++ b/vala/valalambdaexpression.vala
@@ -113,7 +113,7 @@ public class Vala.LambdaExpression : Expression {
}
string get_lambda_name (SemanticAnalyzer analyzer) {
- var result = "__lambda%d".printf (analyzer.next_lambda_id);
+ var result = "_lambda%d_".printf (analyzer.next_lambda_id);
analyzer.next_lambda_id++;
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index fcfdd30..3655916 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -119,8 +119,6 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
public override void visit_source_file (SourceFile file) {
current_source_file = file;
- next_lambda_id = 0;
-
file.check (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]