-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
[compiler][playground] create playground API in pipeline, and allow spaces in pass names #30988
Conversation
…paces in pass names Summary: 1. Minor refactor to provide a stable API for calling the compiler from the playground 2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with in pass tabs [ghstack-poisoned]
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…paces in pass names Summary: 1. Minor refactor to provide a stable API for calling the compiler from the playground 2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with in pass tabs ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb Pull Request resolved: #30988
export function* runPlayground( | ||
func: NodePath< | ||
t.FunctionDeclaration | t.ArrowFunctionExpression | t.FunctionExpression | ||
>, | ||
config: EnvironmentConfig, | ||
fnType: ReactFunctionType, | ||
): Generator<CompilerPipelineValue, CodegenFunction> { | ||
const ast = yield* run(func, config, fnType, '_c', null, null, null); | ||
return ast; | ||
} |
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.
how is this different from run
?
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.
Accepting to unblock but i don't get how runPlayground
differs from run
…paces in pass names Summary: 1. Minor refactor to provide a stable API for calling the compiler from the playground 2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with in pass tabs ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb Pull Request resolved: #30988
…paces in pass names Summary: 1. Minor refactor to provide a stable API for calling the compiler from the playground 2. Allows spaces in pass names without breaking the appearance of the playground by replacing spaces with in pass tabs ghstack-source-id: 12a43ad86c16c0e21f3e6b4086d531cdefd893eb Pull Request resolved: #30988 DiffTrain build for [7b56a54](7b56a54)
Stack from ghstack (oldest at bottom):
Summary: