(name: string)
| 1063 | // Returns the index of the colon in a name, -1 when it has none, or -2 when it |
| 1064 | // is not a qualified name |
| 1065 | const qnameColon = (name: string): number => { |
| 1066 | const colon = name.indexOf(":") |
| 1067 | return colon !== -1 && (colon === 0 || colon === name.length - 1 || name.indexOf(":", colon + 1) !== -1 || |
| 1068 | !isNameStartCode(name.charCodeAt(colon + 1))) ? |
| 1069 | -2 : |
| 1070 | colon |
| 1071 | } |
| 1072 | |
| 1073 | const skipSpace = (s: string, i: number, end: number): number => { |
| 1074 | while (i < end && isSpace(s.charCodeAt(i))) i++ |
no test coverage detected