Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{ program:
{ type: 'Program',
body:
[ { type: 'ExpressionStatement',
expression:
{ type: 'CallExpression',
callee:
{ type: 'Identifier',
name: 'define',
typeAnnotation: undefined,
optional: undefined,
loc:
{ start: { line: 1, column: 0 },
end: { line: 1, column: 6 },
lines: {},
indent: 0 } },
arguments:
[ { type: 'FunctionExpression',
id: null,
params: [],
defaults: [],
body:
{ type: 'BlockStatement',
body:
[ { type: 'ReturnStatement',
argument:
{ type: 'Literal',
value: 'identity',
raw: '\'identity\'',
loc:
{ start: { line: 2, column: 9 },
end: { line: 2, column: 19 },
lines: {},
indent: 2 } },
loc:
{ start: { line: 2, column: 2 },
end: { line: 2, column: 20 },
lines: {},
indent: 2 } } ],
loc:
{ start: { line: 1, column: 18 },
end: { line: 3, column: 1 },
lines: {},
indent: 0 } },
rest: null,
generator: false,
expression: false,
returnType: undefined,
typeParameters: undefined,
loc:
{ start: { line: 1, column: 7 },
end: { line: 3, column: 1 },
lines: {},
indent: 0 } } ],
loc:
{ start: { line: 1, column: 0 },
end: { line: 3, column: 2 },
lines: {},
indent: 0 } },
loc:
{ start: { line: 1, column: 0 },
end: { line: 3, column: 3 },
lines: {},
indent: 0 } } ],
loc:
{ start: { line: 1, column: 0 },
end: { line: 3, column: 3 },
lines: {},
indent: 0 },
errors: [] },
loc:
{ lines: {},
indent: 0,
start: { line: 1, column: 0 },
end: { line: 4, column: 0 } },
type: 'File' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.