(internal, external, loc)
| 540 | var self = this; |
| 541 | |
| 542 | function add(internal, external, loc) { |
| 543 | var t = self.lookup(internal, loc); |
| 544 | if (!(t instanceof ty.Arrow)) |
| 545 | self.fail("expected exported function, got definition of type " + t, loc); |
| 546 | table.set(external, { |
| 547 | name: internal, |
| 548 | type: t |
| 549 | }); |
| 550 | } |
| 551 | |
| 552 | vars.props.forEach(function(prop) { |
| 553 | return this.match(prop, "export declaration", function(when) { |