Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.0 #1056

Open
wants to merge 295 commits into
base: master
Choose a base branch
from
Open

v1.0.0 #1056

wants to merge 295 commits into from

Conversation

TwitchBronBron
Copy link
Member

This is the official branch for the v1.0.0 release, tracking milesone v1.0.0.

markwpearce and others added 30 commits August 1, 2023 13:34
* Fix built in functions parameter types

* Fix double test
* Adds Return type validation

* Removed console log
* Added parsing for typed arrays and made union types not work in Brightscript mode

* Overrides some methods in ArrayTypes and fixes tests

* Updated validation docs for typed arrays
* Adds non-statement expressions to AST

* WIP to verify namespace symbol table changes

* Fix broken semantic tokens test

* Solving more tests

* Refactored Symbol Tables to keep track of teh defining AST node of a symbol

* Completes refactor of completions to use symbol tables

* Fixes namespace hovers

* Cache data after loop in BuiltInInterfaceAdder

* Comment documentaation gets a little formatting help - jsdoc tags are respected

* Revert caching of symbol add calls in BuiltInInterfaceAdder

* removed parser in body hack

* fix for #881

* Use leadingTrivia for comments and fix #883

* Solves #882

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
* Validates DottedSetStatements for type compatibility

* Add test to match issue example
…) to Type System (#891)

* Adds non-statement expressions to AST

* WIP to verify namespace symbol table changes

* Fix broken semantic tokens test

* Solving more tests

* Refactored Symbol Tables to keep track of teh defining AST node of a symbol

* Completes refactor of completions to use symbol tables

* Fixes namespace hovers

* Cache data after loop in BuiltInInterfaceAdder

* Comment documentaation gets a little formatting help - jsdoc tags are respected

* Revert caching of symbol add calls in BuiltInInterfaceAdder

* removed parser in body hack

* fix for #881

* Use leadingTrivia for comments and fix #883

* Solves #882

* Brightscript Components, interfaces,Events and SceneGraph Nodes are in global SymbolTable

* Fixed enum member issue

* fixed build issue

* Adds built in SceneGraph nodes and Custom components as types

* Fixes some completions issues with custom components

* Adds Custom Components to symbol tables

* Some small fixes

* added test and fixed build error

* fix broken test

* Removed mergedSymbolTable as sibling to scope.symbolTable

* Renamed addDeferredComponentTypeSymbolCreation and generalized type chain seperators

* Added comment for program.componentSymbolsToUpdate

* Update timeout on long running test

* Fixed typo

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
* Adds validation for binary operators

* fix indenting

* fixed test and added test to validate setting node properties
)

* Fix unary operator validation on union types

* fixed array.sort flags as being optional... re-ran scraper

* added test for array.sort optional types
… missing or mismatches members (#901)

Co-authored-by: Bronley Plumb <bronley@gmail.com>
* Fix scope related info messages, truncate the list

* Fix unit tests
* Fix scope related info messages, truncate the list

* Fix unit tests

* Add truncate method

* Tweak type compatibility diagnostic messages
Co-authored-by: Bronley Plumb <bronley@gmail.com>
* Fixes compatibility of built in types so typed array can be assigned to roArray

* Adding more intrinsic objects

* Do more type checking based on members

* Added in some TODOs about name checking interfaces
…essions (#927)

* Better completions on type expressions/casts and adds native components to semantic tokens

* Re-added deleted test
* Added Callfunc as ComponentType member

* Tightened up TypedFUnctionType compatibility code and added tests for .callFunc invocations

* fixed build issue

* Added callfunc as an override directly in scrape-roku-docs script

* fixed build errors

* Rescraped Roku docs
TwitchBronBron and others added 30 commits September 30, 2024 12:35
* Fix semantic tokens for component and interface instances.

* Fix lint issue and failing test
* Fix bug in bslib prefix transpiling

* Fix lint issues.
* Fixes using upper namespaced function indirectly

* Added test to verify validating correct function

* Clarifies namespace docs
* Adds diagnostic if no return statement found in function

* Added edge cases to tests, and improved returnTypeMismatch check for void rerturns
* Does not validate unknown members of a component in BrightScript mode

* Fixed lint errors
* Scraped docs and fixed Vector2DFieldInterpolator keyValue type

* fixes when the roku docs say  instead of

* Update scripts/scrape-roku-docs.ts

handle whitespace fixes in scraped docs as well

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* remove duplicated field fix

* Is a little more forgiving in getting the return type from the roku docs

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
…1241)

* Took a stab at re-writing the docs

* Added human readable names to diagnostics

* Added file.destPath diagnostics filtering

* hopefully fixed test

* Is this change needed too?

* Changed BsDiagnostic so code is the human-readable version, legacyCode is the old code

* Fixed some issues

* Fix misspelling

* Update docs/bsconfig.md

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update docs/bsconfig.md

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Updated docs to use new codes instead of legacy codes for diagnotsics

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Changes from comments on PR

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Combined diagnostics to make new expectedOperator diagnostic

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Combined expectedTerminator diags - Ill Be Back

* Consolidated expected statement diagnostics

* Removed xml prefix on xml diagnostics

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* use one expected-identifier diaganostic code

* A few more changes

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* Update src/DiagnosticMessages.ts

Co-authored-by: Bronley Plumb <bronley@gmail.com>

* A few more changes

* Rename many diagnostic codes

* Some small code tweaks

* Updated the expectedEndForOrNextToTerminateForLoop diagnostic

* Refactored memberAccessibilityMismatch diagnostic

* Reverted data.json change

* Combine `expectedIdentifierAfterKeyword` and `expectedIdentifier`

* Merge several `expected*AfterCallable` diagnostics into `expecteToken` or `expectedIdentifier`

* Rename functionNameCannotEndWithTypeDesignator to invalidIdentifier and update diagnostics for invalid characters in function names

* Rename mismatchedEndCallableKeyword to closingKeywordMismatch and update related diagnostic messages

* More diagnostics refactoring (unterminatedString, class inheritance, etc)

* Eliminate more diagnostic codes (such as localVarSameNameAsClass and expectedOpenParenToFollowCallfuncIdentifier)

* Refactor hash* diagnostics

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
)

* Changes expectedReturnStatement to allow coercable types

* fixed lint error

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
* Eliminates unnecessary import and fractional hex diagnostics

* Adds tests for fractional hex in different contexts

---------

Co-authored-by: Bronley Plumb <bronley@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants