-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Added iteration scope for js statements #2144
Conversation
@@ -47,8 +45,14 @@ export function getScopeTestPaths() { | |||
.filter((p) => p.endsWith(".scope")) | |||
.map((p) => ({ | |||
path: p, | |||
name: path.relative(relativeDir, p.substring(0, p.lastIndexOf("."))), | |||
name: pathToName(relativeDir, p), |
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.
Had forgot to update the name of scope test cases
@@ -0,0 +1,33 @@ | |||
// Start |
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.
Included to make it very obvious that it's not the function, but the entire document
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.
looks good with minor comment
ifStatement: supported, | ||
regularExpression: supported, | ||
switchStatementSubject: supported, | ||
fieldAccess: supported, | ||
|
||
statement: supported, | ||
"statement.iteration": supported, |
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.
This will absolutely get split up, and probably sooner rather than later. Should we do that now? Eg statement.iteration.file
and statement.iteration.block
? Tho block
tends to mean something very different in our code base 🤔
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.
I was thinking about that, but there is no way to do separate scopes fixtures for that, both files will have 2 scopes I'm afraid.
Block is just the spoken form. We do call it paragraph as an id. I'm fine with block in this context.
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.
I was thinking about that, but there is no way to do separate scopes fixtures for that, both files will have 2 scopes I'm afraid.
Yeah I'm not sure of a way around that. But I still think making it super explicit what the iteration scopes should be is preferred
Block is just the spoken form. We do call it paragraph as an id. I'm fine with block in this context.
Sounds good
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.
Ok will split it!
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.
Fixed!
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.
👍
Checklist