diff options
author | Colin Walters <walters@verbum.org> | 2009-02-25 23:43:14 (GMT) |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-26 19:07:21 (GMT) |
commit | 4470a24e8cf3827efaddcfe240c3271cf1a0d6c0 (patch) | |
tree | 4bbcd76c1c325c403ec0408a81489ab97c5465f0 /giscanner/ast.py | |
parent | 251de52b083d3e0e42f25cb164a46865c2c2b9a9 (diff) |
Bug 557383 - Virtual function support
In order to determine whether a method is virtual, by default we look
at the class table to find a callback field. This should be fairly reliable,
but we may also later need annotations to more finely control this
in the case of a name clash with a signal.
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index e708258..4bd674d 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -205,6 +205,7 @@ class Function(Node): self.symbol = symbol self.throws = not not throws self.is_method = False + self.is_virtual = False self.doc = None def get_parameter_index(self, name): @@ -222,11 +223,6 @@ class Function(Node): self.name, self.retval, self.parameters) - -class VFunction(Function): - pass - - class Type(Node): def __init__(self, name, ctype=None): |