-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathcompiler_property.go
88 lines (69 loc) · 1.91 KB
/
compiler_property.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package ride
type PropertyState struct {
prev Fsm
name string
params
deferred []Deferred
deferreds Deferreds
}
func (a PropertyState) retAssigment(as Fsm) Fsm {
panic("implement me")
//return a
}
func propertyTransition(prev Fsm, params params, name string) Fsm {
return &PropertyState{
params: params,
prev: prev,
name: name,
}
}
func (a PropertyState) Assigment(name string) Fsm {
panic("Illegal call `Assigment` on PropertyState")
}
func (a PropertyState) Return() Fsm {
//a.b.writeByte(OpProperty)
//index := a.constant(rideString(a.name))
//a.params.b.write(encode(index))
//return a.prev.retAssigment(a)
panic("aaaaa")
}
func (a PropertyState) Long(value int64) Fsm {
panic("Illegal call `Long` on PropertyState")
}
func (a PropertyState) Call(name string, argc uint16) Fsm {
return callTransition(a, a.params, name, argc, a.deferreds)
}
func (a PropertyState) Reference(name string) Fsm {
a.deferred = append(a.deferred, reference(a, a.params, name))
return a
}
func (a PropertyState) Boolean(v bool) Fsm {
panic("Illegal call `Boolean` on PropertyState")
}
func (a PropertyState) String(s string) Fsm {
panic("Illegal call `String` on PropertyState")
}
func (a PropertyState) Condition() Fsm {
panic("Illegal call `Condition` on PropertyState")
}
func (a PropertyState) TrueBranch() Fsm {
panic("Illegal call `TrueBranch` on PropertyState")
}
func (a PropertyState) FalseBranch() Fsm {
panic("Illegal call `FalseBranch` on PropertyState")
}
func (a PropertyState) Bytes(b []byte) Fsm {
a.deferred = append(a.deferred, a.constant(rideBytes(b)))
return a
}
func (a PropertyState) Func(name string, args []string, invoke string) Fsm {
panic("Illegal call `Func` on PropertyState")
}
func (a PropertyState) Property(name string) Fsm {
return propertyTransition(a, a.params, name)
}
func (a PropertyState) Clean() {
}
func (a PropertyState) Write(_ params) {
panic("PropertyState Write")
}