nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated 'create_thread' function comments.
[nit.git]
/
src
/
auto_super_init.nit
diff --git
a/src/auto_super_init.nit
b/src/auto_super_init.nit
index
f304d04
..
c13fb36
100644
(file)
--- a/
src/auto_super_init.nit
+++ b/
src/auto_super_init.nit
@@
-28,7
+28,7
@@
end
private class AutoSuperInitPhase
super Phase
private class AutoSuperInitPhase
super Phase
- redef fun process_npropdef(npropdef) do if npropdef isa AConcreteMethPropdef then npropdef.do_auto_super_init(toolcontext.modelbuilder)
+ redef fun process_npropdef(npropdef) do if npropdef isa AMethPropdef then npropdef.do_auto_super_init(toolcontext.modelbuilder)
end
private class AutoSuperInitVisitor
end
private class AutoSuperInitVisitor
@@
-47,7
+47,7
@@
private class AutoSuperInitVisitor
end
end
-redef class AConcreteMethPropdef
+redef class AMethPropdef
# In case of constructor, the list of implicit auto super init constructors invoked (if needed)
var auto_super_inits: nullable Array[CallSite] = null
# In case of constructor, the list of implicit auto super init constructors invoked (if needed)
var auto_super_inits: nullable Array[CallSite] = null
@@
-106,7
+106,7
@@
redef class AConcreteMethPropdef
var msignature = candidatedef.msignature
msignature = msignature.resolve_for(recvtype, anchor, mmodule, true)
var msignature = candidatedef.msignature
msignature = msignature.resolve_for(recvtype, anchor, mmodule, true)
- var callsite = new CallSite(self, recvtype, true, candidate, candidatedef, msignature, false)
+ var callsite = new CallSite(self, recvtype, mmodule, anchor, true, candidate, candidatedef, msignature, false)
auto_super_inits.add(callsite)
end
if auto_super_inits.is_empty then
auto_super_inits.add(callsite)
end
if auto_super_inits.is_empty then