Skip to content

Refactor record shape processing out of calculating record bound fields - #2074

Merged
elliette merged 4 commits into
dart-lang:masterfrom
annagrin:annagrin/shapes
Apr 10, 2023
Merged

elliette merged 4 commits into
dart-lang:masterfrom
annagrin:annagrin/shapes

Conversation

@annagrin

@annagrin annagrin commented Apr 5, 2023 •

Copy link
Copy Markdown
Contributor

Record shapes can be used in other places such as RecordTypes. Refactor the code for record shape processing out of code calculating record bound fields so we can potentially reuse it for RecordTypes.

See: #2070

@annagrin
annagrin requested a review from elliette April 5, 2023 18:34
@annagrin annagrin changed the title Refactor record shape processing our of calculating record bound fields Refactor record shape processing out of calculating record bound fields Apr 5, 2023
@elliette
elliette merged commit 843890c into dart-lang:master Apr 10, 2023
function() {
var sdkUtils = ${globalLoadStrategy.loadModuleSnippet}('dart_sdk').dart;
var shape = sdkUtils.dloadRepl(this, "shape");
var positionalCount = sdkUtils.dloadRepl(shape, "positionals");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are the Repl versions of these dload calls used? The repl and regular versions should be identical because the fields are not private but it appears we are using the wrong version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants