diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-11-12 08:40:13 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-11-12 08:40:13 -0800 |
commit | 1b031e02d33baa0889f906b7c1ec2f04fabe16d5 (patch) | |
tree | 1056527afd2864384d024ab9bcdfcb60e98a32a8 | |
parent | a3903de867a0cff0854ea8e195469a48d11b9c9e (diff) |
refactor demangler
-rw-r--r-- | src/preamble.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/preamble.js b/src/preamble.js index a91d16f1..e552f782 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -716,7 +716,12 @@ function demangle(func) { return '(' + list.join(', ') + ')'; } var name; - if (func[i] !== 'N') { + if (func[i] === 'N') { + // namespaced N-E + name = parseNested().join('::'); + limit--; + if (limit === 0) return rawList ? [name] : name; + } else { // not namespaced if (func[i] === 'K') i++; // ignore const var size = parseInt(func.substr(i)); @@ -725,11 +730,6 @@ function demangle(func) { name = func.substr(i + pre, size); i += pre + size; } - } else { - // namespaced N-E - name = parseNested().join('::'); - limit--; - if (limit === 0) return rawList ? [name] : name; } if (func[i] === 'I') { i++; |