IncompatibleDSL should be called by DSL functions when they are invoked in an incorrect context (e.g. "Params" in "Service").
()
| 117 | // IncompatibleDSL should be called by DSL functions when they are invoked in an |
| 118 | // incorrect context (e.g. "Params" in "Service"). |
| 119 | func IncompatibleDSL() { |
| 120 | ReportError("invalid use of %s", caller()) |
| 121 | } |
| 122 | |
| 123 | // InvalidArgError records an invalid argument error. It is used by DSL |
| 124 | // functions that take dynamic arguments. |
no test coverage detected