You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/02/11 12:51:01 UTC

[4/6] lucy-clownfish git commit: Add some accessors for CFCCallable

Add some accessors for CFCCallable


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/96581fd6
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/96581fd6
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/96581fd6

Branch: refs/heads/master
Commit: 96581fd6caf1b74279c1906d6504fd49e8489a6d
Parents: 5aae424
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Thu Feb 11 12:10:44 2016 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Thu Feb 11 12:10:44 2016 +0100

----------------------------------------------------------------------
 compiler/src/CFCCallable.c | 25 +++++++++++++++++++++++++
 compiler/src/CFCCallable.h | 15 +++++++++++++++
 2 files changed, 40 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/96581fd6/compiler/src/CFCCallable.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCCallable.c b/compiler/src/CFCCallable.c
index 26f9c42..d421366 100644
--- a/compiler/src/CFCCallable.c
+++ b/compiler/src/CFCCallable.c
@@ -88,3 +88,28 @@ CFCCallable_can_be_bound(CFCCallable *self) {
     return true;
 }
 
+CFCType*
+CFCCallable_get_return_type(CFCCallable *self) {
+    return self->return_type;
+}
+
+CFCParamList*
+CFCCallable_get_param_list(CFCCallable *self) {
+    return self->param_list;
+}
+
+CFCDocuComment*
+CFCCallable_get_docucomment(CFCCallable *self) {
+    return self->docucomment;
+}
+
+const char*
+CFCCallable_get_name(CFCCallable *self) {
+    return CFCSymbol_get_name((CFCSymbol*)self);
+}
+
+int
+CFCCallable_public(CFCCallable *self) {
+    return CFCSymbol_public((CFCSymbol*)self);
+}
+

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/96581fd6/compiler/src/CFCCallable.h
----------------------------------------------------------------------
diff --git a/compiler/src/CFCCallable.h b/compiler/src/CFCCallable.h
index 7ac737f..0848f11 100644
--- a/compiler/src/CFCCallable.h
+++ b/compiler/src/CFCCallable.h
@@ -70,6 +70,21 @@ CFCCallable_resolve_types(CFCCallable *self);
 int
 CFCCallable_can_be_bound(CFCCallable *self);
 
+struct CFCType*
+CFCCallable_get_return_type(CFCCallable *self);
+
+struct CFCParamList*
+CFCCallable_get_param_list(CFCCallable *self);
+
+struct CFCDocuComment*
+CFCCallable_get_docucomment(CFCCallable *self);
+
+const char*
+CFCCallable_get_name(CFCCallable *self);
+
+int
+CFCCallable_public(CFCCallable *self);
+
 #ifdef __cplusplus
 }
 #endif