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

Function Current

eval/eval.go:89–95  ·  view source on GitHub ↗

Current returns the expression whose DSL is currently being executed. As a special case Current returns Top when the execution stack is empty.

()

Source from the content-addressed store, hash-verified

87// Current returns the expression whose DSL is currently being executed.
88// As a special case Current returns Top when the execution stack is empty.
89func Current() Expression {
90 current := Context.Stack.Current()
91 if current == nil {
92 return Top
93 }
94 return current
95}
96
97// ReportError records a DSL error for reporting post DSL execution. It accepts
98// a format and values a la fmt.Printf.

Callers 15

ConvertToFunction · 0.92
CreateFromFunction · 0.92
MethodFunction · 0.92
DeprecatedFunction · 0.92
FilesFunction · 0.92
ServerFunction · 0.92
ServicesFunction · 0.92
HostFunction · 0.92
URIFunction · 0.92
VariableFunction · 0.92
APIFunction · 0.92
TitleFunction · 0.92

Calls 1

CurrentMethod · 0.80

Tested by

no test coverage detected