Current returns current evaluation context, i.e. object being currently built by DSL.
()
| 55 | // Current returns current evaluation context, i.e. object being currently built |
| 56 | // by DSL. |
| 57 | func (s Stack) Current() Expression { |
| 58 | if len(s) == 0 { |
| 59 | return nil |
| 60 | } |
| 61 | return s[len(s)-1] |
| 62 | } |
| 63 | |
| 64 | // Error builds the error message from the current context errors. |
| 65 | func (c *DSLContext) Error() string { |
no outgoing calls
no test coverage detected