* After a `property` keyword running from `start` to `propertyEnd`, * recognize a property override, which names an inherited property without * its type to publish it or change a specifier — `property OwnsObjects;`, * `property Cursor default crIBeam;`, `property Color stored IsColorStored;` *
(s: string, start: number, propertyEnd: number, ranges: number[])
| 414 | * the index to resume scanning from. |
| 415 | */ |
| 416 | function scanPropertyOverride(s: string, start: number, propertyEnd: number, ranges: number[]): number { |
| 417 | const nameStart = skipTrivia(s, propertyEnd); |
| 418 | if (!isIdentStart(s.charCodeAt(nameStart))) return propertyEnd; |
| 419 | const i = skipTrivia(s, wordEnd(s, nameStart + 1)); |
| 420 | const next = s.charCodeAt(i); |
| 421 | if (next === CH_COLON || next === CH_LBRACKET) return propertyEnd; |
| 422 | const end = semicolonEnd(s, i, MAX_OVERRIDE_LENGTH); |
| 423 | if (end < 0) return propertyEnd; |
| 424 | const classStart = classBefore(s, start); |
| 425 | ranges.push(classStart >= 0 ? classStart : start, end); |
| 426 | return end; |
| 427 | } |
| 428 | |
| 429 | /** |
| 430 | * A conditional compiler directive group, from its `{$IF…}`, `{$IFDEF…}`, |
no test coverage detected