nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: update most tools to new constructors
[nit.git]
/
src
/
semantize
/
flow.nit
diff --git
a/src/semantize/flow.nit
b/src/semantize/flow.nit
index
522a347
..
02ce863
100644
(file)
--- a/
src/semantize/flow.nit
+++ b/
src/semantize/flow.nit
@@
-33,19
+33,17
@@
end
private class FlowVisitor
super Visitor
private class FlowVisitor
super Visitor
- var current_flow_context: FlowContext
+ var current_flow_context = new FlowContext
var toolcontext: ToolContext
var toolcontext: ToolContext
- init(toolcontext: ToolContext)
+ init
do
do
- self.toolcontext = toolcontext
- current_flow_context = new FlowContext
flows.add(current_flow_context)
current_flow_context.is_start = true
end
flows.add(current_flow_context)
current_flow_context.is_start = true
end
- var first: nullable ANode
+ var first: nullable ANode = null
redef fun visit(node)
do
redef fun visit(node)
do