correcting names of structure accessors and mutators

This commit is contained in:
Danny Yoo 2011-09-27 17:29:34 -04:00
parent ea578d6ff4
commit 657d74e37b

View File

@ -2077,9 +2077,9 @@
var index = M.e[M.e.length - 2]; var index = M.e[M.e.length - 2];
var name; var name;
if (M.a === 3) { if (M.a === 3) {
name = M.e[M.e.length - 3].toString(); name = structType.name + "-" + M.e[M.e.length - 3].toString();
} else { } else {
name = 'field' + index; name = structType.name + "-" + 'field' + index;
} }
var checkStruct = baselib.check.makeCheckArgumentType(structType.predicate, var checkStruct = baselib.check.makeCheckArgumentType(structType.predicate,
structType.name); structType.name);
@ -2103,9 +2103,9 @@
var index = M.e[M.e.length - 2]; var index = M.e[M.e.length - 2];
var name; var name;
if (M.a === 3) { if (M.a === 3) {
name = M.e[M.e.length - 3].toString(); name = "set-" + structType.name + "-" + M.e[M.e.length - 3].toString() + "!";
} else { } else {
name = 'field' + index; name = "set-" + structType.name + "-" + 'field' + index + "!";
} }
var checkStruct = baselib.check.makeCheckArgumentType(structType.predicate, var checkStruct = baselib.check.makeCheckArgumentType(structType.predicate,
structType.name); structType.name);