Skip to content

Instantly share code, notes, and snippets.

@Yoric
Last active June 14, 2018 21:50
Show Gist options
  • Save Yoric/3cf4bd7de1d6653c72ff83184db1f705 to your computer and use it in GitHub Desktop.
Save Yoric/3cf4bd7de1d6653c72ff83184db1f705 to your computer and use it in GitHub Desktop.
interface EagerFunctionDeclaration : Node {
attribute FunctionDeclarationPrologue prologue;
attribute FunctionDeclarationContents data;
};
interface SkippableFunctionDeclaration : Node {
attribute FunctionDeclarationPrologue prologue;
[Skippable] attribute FunctionDeclarationContents data;
};
interface FunctionDeclarationPrologue : Node {
attribute BindingIdentifier name;
attribute FrozenArray<Directive> directives;
};
interface FunctionDeclarationContents : Node {
attribute boolean isAsync;
attribute boolean isGenerator;
attribute AssertedParameterScope parameterScope;
attribute AssertedVarScope? bodyScope;
attribute Parameter param;
attribute FunctionBody body;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment