Rename .value to .text or .color where applicable. (#1606)

* Update comment for defineFunction handler.

* Rename .value to .text in all token-style ParseNodes.

* Rename symbolNode's .value to .text.

* Rename color-token's .value to .color.
This commit is contained in:
Ashish Myles
2018-08-13 07:58:46 -04:00
committed by ylemkimon
parent 4e53f9d059
commit 8492a7532b
21 changed files with 146 additions and 151 deletions

View File

@@ -369,7 +369,7 @@ defineFunction({
} else {
leftNode = assertAtomFamily(args[0], "open");
}
const leftDelim = delimFromValue(leftNode.value);
const leftDelim = delimFromValue(leftNode.text);
let rightNode = checkNodeType(args[1], "ordgroup");
if (rightNode) {
@@ -377,7 +377,7 @@ defineFunction({
} else {
rightNode = assertAtomFamily(args[1], "close");
}
const rightDelim = delimFromValue(rightNode.value);
const rightDelim = delimFromValue(rightNode.text);
const barNode = assertNodeType(args[2], "size");
let hasBarLine;
@@ -398,11 +398,11 @@ defineFunction({
if (styl) {
if (styl.value.length > 0) {
const textOrd = assertNodeType(styl.value[0], "textord");
size = stylArray[Number(textOrd.value)];
size = stylArray[Number(textOrd.text)];
}
} else {
styl = assertNodeType(args[3], "textord");
size = stylArray[Number(styl.value)];
size = stylArray[Number(styl.text)];
}
return {