MCPcopy Create free account
hub / github.com/goadesign/goa / Current

Method Current

eval/context.go:57–62  ·  view source on GitHub ↗

Current returns current evaluation context, i.e. object being currently built by DSL.

()

Source from the content-addressed store, hash-verified

55// Current returns current evaluation context, i.e. object being currently built
56// by DSL.
57func (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.
65func (c *DSLContext) Error() string {

Callers 2

CurrentFunction · 0.80
ReportErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected