MCPcopy
hub / github.com/asm-js/validator / add

Function add

lib/validate.js:542–550  ·  view source on GitHub ↗
(internal, external, loc)

Source from the content-addressed store, hash-verified

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) {

Callers 1

validate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected