[vala/0.40] parser: Implicit "main" method of main-block is public and static
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] parser: Implicit "main" method of main-block is public and static
- Date: Wed, 5 Feb 2020 10:02:10 +0000 (UTC)
commit d83cc4a43ee4e621513c7f36138d11ff3a94a888
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Nov 24 22:42:18 2019 +0100
parser: Implicit "main" method of main-block is public and static
vala/valaparser.vala | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index dcea02bdf..8594c1c95 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2254,6 +2254,8 @@ public class Vala.Parser : CodeVisitor {
var begin = get_location ();
var method = new Method ("main", new VoidType (), get_src (begin));
+ method.access = SymbolAccessibility.PUBLIC;
+ method.binding = MemberBinding.STATIC;
method.body = new Block (get_src (begin));
parse_statements (method.body);
if (current () != TokenType.EOF) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]