Debian Codegraph @

core/miku/node.rb

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3
4 module MIKU
5 module Node
6 def miku_eval_another(symtable, node)
7 if(node.is_a? Node) then
8 node.miku_eval(symtable)
9 else
10 node
11 end
12 end
13 end
14
15 module StaticCode
16 attr_accessor :staticcode_line, :staticcode_file
17
18 def staticcode_copy_info(src)
19 if src.is_a? Array
20 @staticcode_line = src[0]
21 @staticcode_file = src[1]
22 else
23 @staticcode_line = src.staticcode_line
24 @staticcode_file = src.staticcode_file end
25 self end
26
27 def staticcode_dump
28 [@staticcode_file, @staticcode_line] end
29
30 def self.extended(obj)
31 obj.staticcode_line = 1
32 obj.staticcode_file = 'runtime-code' end end
33
34 end