summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-09-20 19:14:02 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-20 19:29:08 -0300
commit01875756ebacc3e4578106f638ca7e57cdcd21f0 (patch)
treea5a0fddff6ab2e829d2b5c2d7db54d6defda66fc /src/bin
parent53a3326ddc74634093d9bd06e3d5c23fcd783b54 (diff)
eolian_mono: add more verbs to generate C# method beginning with verb
Summary: C# language binding generates C# method name beginning with verb by checking verb list in name_helpers.hh. Some verbs used in eo method are missing in the current verb list. So they are added into the verb list. In this scheme, there is a problem that some words can be used as a verb in some methods but they also can be used as a noun in other methods. (e.g. drag_start as a verb / cursor_word_start as a noun) So "start" and "scroll" are not added to verb list in this patch. To resolve the above problem, we may need a new eo syntax to rename or reverse the name in language bindings. Test Plan: Check C# method names in .eo.cs files if the name begins with verb. Reviewers: felipealmeida, SanghyeonLee, woohyun, Jaehyun_Cho, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10001
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_mono/eolian/mono/name_helpers.hh37
1 files changed, 36 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/name_helpers.hh b/src/bin/eolian_mono/eolian/mono/name_helpers.hh
index b206311..e68de6b 100644
--- a/src/bin/eolian_mono/eolian/mono/name_helpers.hh
+++ b/src/bin/eolian_mono/eolian/mono/name_helpers.hh
@@ -123,7 +123,42 @@ static const std::vector<std::string> verbs =
123 "unpack", 123 "unpack",
124 "emit", 124 "emit",
125 "call", 125 "call",
126 "append" 126 "append",
127 "apply",
128 "bind",
129 "cancel",
130 "copy",
131 "create",
132 "cut",
133 "delete",
134 "deselect",
135 "detach",
136 "do",
137 "gen",
138 "insert",
139 "iterate",
140 "join",
141 "leave",
142 "limit",
143 "paste",
144 "parse",
145 "prepend",
146 "process",
147 "query",
148 "refresh",
149 "remove",
150 "register",
151 "reject",
152 "release",
153 "reply",
154 "send",
155 "select",
156 "serialize",
157 "steal",
158 "sync",
159 "toggle",
160 "unbind",
161 "unregister"
127 }; 162 };
128 163
129const std::vector<std::string> not_verbs = 164const std::vector<std::string> not_verbs =