[vala/staging] 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/staging] parser: Implicit "main" method of main-block is public and static
- Date: Sun, 24 Nov 2019 21:51:33 +0000 (UTC)
commit 6962b8d5440c9a0359d6a7860d386c0928170066
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 587f6b159..e6c667bca 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -2261,6 +2261,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]