Added
- Support optional chaining on callfunc (#1920)
- Support severity-based diagnostic filtering (#1930)
- Add diagnostic for files over the device literal limit (#1862)
- Add diagnostic for functions over the device goto label limit (#1861)
- Warn when assigning to a member of an AA read from a node field (#1975)
- Flag missing observer callbacks (#1919)
- Flag parameters whose type designator conflicts with their
astype (#1921) - Validate regex literals (#1915)
Changed
- Refactor Location tracking to be an offset-based Locatable model (#1845)
- Run BscPlugin's work in after* hooks so plugins always run first (#1946)
- Link BrsFile symbols in validateFile, validate in afterValidateFile (#1947)
- Transpile statement-level
??to if statements (#1914) - Let type designators win over conflicting parameter
astypes (#1965) - Scrape roku docs from the dev-doc gitlab repo (#1979)
- Lazily allocate ReferenceType state and BscType member tables (#1952)
- Use ReadonlySets for token kind lists instead of spreading arrays (#1962)
- Keep objects on one hidden class by initializing late-assigned fields (#1967)
- Skip transpile work for expressions with nothing to inline, and only read the tail when stripping sourceMappingURL (#1973)
- Reuse the lexer's trivia scratch array between tokens (#1963)
- Don't allocate collections that usually stay empty (#1968)
- Security enhancements (#1944, #1956)
Fixed
- Short-circuit indexed and xml attribute gets in
??and ternary (#1984) - Allow same-line annotations inside function bodies (#1916)
- Allow a colon before a single-line
if(#1925) - Allow regex literals in return statements (#1922)
- Don't capture namespace names in ternary and
??inline functions (#1917) - Keep trailing comments on their line when lowering statement-level
??(#1987) - Keep comments above a statement-level
??ahead of its temp statements (#1989) - Fix false "cannot find name" caused by a field's type chain (#1971)
- Fix lost cross-scope diagnostics after editing a file shared by multiple scopes (#1932)
- Don't request workspace folders from clients that don't support them (#1948)
- Fix memory leak: built-in method cache kept the first program alive (#1980)
- Fix memory leak: forget diagnostic segments once they're cleared (#1969)