-
Notifications
You must be signed in to change notification settings - Fork 754
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
Generate a typedesc instruction once for record and tuple types #39101
Closed
chiranSachintha
wants to merge
65
commits into
ballerina-platform:master
from
chiranSachintha:new-typedesc
Closed
Changes from 43 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
5b8006c
Set owner of generated type definitions
chiranSachintha 34f322f
Add type details to `NewStructure` instruction
chiranSachintha 013bafe
Add details of enclosure map symbols to record type
chiranSachintha cd8d4a8
Use record reference type when creating mapping value
chiranSachintha 679b9fa
Create runtime type instance only for the user defined type definitions
chiranSachintha dd89697
Fix checkstyle issues
chiranSachintha 62293d5
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha c3c7690
Generate separate method to create typedesc instances
chiranSachintha 193eb74
BIR test update
chiranSachintha 08af771
Add typedesc details to NewArray instruction
chiranSachintha e0ce035
Use PackageID of type
chiranSachintha ed9d56f
Generate a typedesc instruction once for record and tuple types
chiranSachintha 955f2eb
Implemente visitors for type node
chiranSachintha 89b4981
Add BTypeReferenceType constructor for creating a read-only type refe…
chiranSachintha e5875ba
Generate type definition for tuple intersection with readonly
chiranSachintha 2097769
Update BIR test
chiranSachintha 4f85ee5
Update error meesage
chiranSachintha 722f9e1
Use referred type of type reference
chiranSachintha 83e3fa8
Update test
chiranSachintha d7dc555
Update code-coverage test
chiranSachintha 2ea5364
Fix review suggestion
chiranSachintha c444f9f
Fix review suggestions
chiranSachintha 0c6d138
Fix review suggestions
chiranSachintha 849fe3c
Update code-coverage test
chiranSachintha a2d16cb
Update variable visibility tests
chiranSachintha 3de6606
Visit member types of tupletypenode
chiranSachintha d39e353
Refactor tuple member visit logic
chiranSachintha 247b1eb
Refactor logic in `mapToVarDcls` function
chiranSachintha 0fbf9e4
Merge branch 'annot-tuple-members' of https://github.com/ballerina-pl…
chiranSachintha bde8535
Import BIntersectionType
chiranSachintha 95560b2
Visit member types of tupletypenode
chiranSachintha c0ef0a5
Refactor error detail type handling logic
chiranSachintha b21e351
Generate new Typedesc Id
chiranSachintha 7cae7b4
Add constructor to BIRGlobalVariableDcl class
chiranSachintha 8d23d1a
Remove desugaring of local anonymous record type node to BLangUserDef…
chiranSachintha bba94d6
Add function to check for user-defined type
chiranSachintha d307469
Add support to create type descriptor instances for global variables
chiranSachintha b9c7552
Modify typenode visitors to generate type descriptor instructions dur…
chiranSachintha 32e4e51
BIR test update
chiranSachintha 0b954ee
Add enclMapSymbols set in record type node visitor
chiranSachintha 87d3701
Refactor logic
chiranSachintha 860a236
Update variable visibility tests
chiranSachintha 1cf271a
Fix review suggestions
chiranSachintha 247c05f
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha 1db824f
Resolve conflicts
chiranSachintha d05c0c3
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha c2dd87b
Include global variables into top level nodes
chiranSachintha b9ac3b6
Rearrange top level nodes for improve order
chiranSachintha 416ef62
Add closures to top level nodes
chiranSachintha a287874
Add annotations to typedesc instructions
chiranSachintha 2e97c69
Exclude generation of typedesc for records prior to the initializatio…
chiranSachintha a07302f
Generation of typedesc for records type definitions
chiranSachintha 3d7c1fe
Generate init function based on the order of top level nodes
chiranSachintha b977935
Update dependency relations logic
chiranSachintha 3de5bb8
Add generated global level stmts related to annotations after generat…
chiranSachintha deeeb29
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha 3ef8c5d
Update type of `astStructLiteralExpr`
chiranSachintha 99943b2
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha 6f37020
Get annotation from typedesc
chiranSachintha 5072e8c
Rearrange top level nodes for improve order
chiranSachintha 182e46c
Implement Block Statement for store TypeNode Details
chiranSachintha 64522f5
Add global variables to top level nodes
chiranSachintha 05f67bc
Generate a typedesc instruction when visiting type node
chiranSachintha c99c7d4
Desugar local record type nodes
chiranSachintha 2299e82
Merge branch 'master' of https://github.com/ballerina-platform/baller…
chiranSachintha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -158,5 +158,4 @@ public static Type getReferredType(Type type) { | |
} | ||
return constraint; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this change?
IIRC, we have switch cases that handle the
type-reference-type
insidecheckIsType
andcheckIsLikeOnValue
implementations.