-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Futher fixes for G3 #18986
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
Futher fixes for G3 #18986
Conversation
You can preview 18416e2 at https://pr18986-18416e2.ngbuilds.io/. |
f82e083
to
a3d19d7
Compare
You can preview a3d19d7 at https://pr18986-a3d19d7.ngbuilds.io/. |
You can preview d728a0b at https://pr18986-d728a0b.ngbuilds.io/. |
You can preview 496644a at https://pr18986-496644a.ngbuilds.io/. |
@@ -106,6 +106,7 @@ def _compile_action(ctx, inputs, outputs, config_file_path): | |||
if hasattr(ctx.attr, "tsconfig") and ctx.file.tsconfig: | |||
action_inputs += [ctx.file.tsconfig] | |||
|
|||
arguments = ["--node_options=--expose-gc"] | |||
# One at-sign makes this a params-file, enabling the worker strategy. | |||
# Two at-signs escapes the argument so it's passed through to ngc | |||
# rather than the contents getting expanded. |
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.
missing the +=
below
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.
Done
} | ||
|
||
export function compile( | ||
{fileLoader, compilerOpts, bazelOpts, files, expectedOuts, gatherDiagnostics}: { |
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.
are you sure about taking named parameters here? so clunky
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.
Yes. This is way easier to read on the call site than to take all of these as positional arguments. We have it in the ngc api as well. And chuck also complained about it :-)
@@ -28,6 +28,11 @@ describe('Expression lowering', () => { | |||
class MyClass {} | |||
`)).toContain('const l = () => null; exports.l = l;'); | |||
}); | |||
|
|||
it('should be able to export a variable if the whole value is lowered', () => { | |||
expect(convert('/*a*/ const a =◊b: () => null◊;')) |
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.
weird diamond characters appear on github web ui :(
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.
Yes, that is on purpose. See the other tests.
You can preview a8d9597 at https://pr18986-a8d9597.ngbuilds.io/. |
You can preview c1ca788 at https://pr18986-c1ca788.ngbuilds.io/. |
You can preview 1dda6ce at https://pr18986-1dda6ce.ngbuilds.io/. |
…flexible Needed to allow custom checking for diagnostics.
This e.g. leaves comments at the right place, which is important for closure.
You can preview 4b3cbb3 at https://pr18986-4b3cbb3.ngbuilds.io/. |
Landed as a69172f |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.