Skip to content

Commit

Permalink
[compiler] Rename HIRFunction.returnType
Browse files Browse the repository at this point in the history
Rename this field so we can use it for the actual return type.

[ghstack-poisoned]
  • Loading branch information
josephsavona committed Aug 22, 2024
1 parent 190311f commit 0c9d287
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function lower(
id,
params,
fnType: parent == null ? env.fnType : 'Other',
returnType: null, // TODO: extract the actual return type node if present
returnTypeAnnotation: null, // TODO: extract the actual return type node if present
returnIdentifier,
body: builder.build(),
context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export type HIRFunction = {
fnType: ReactFunctionType;
env: Environment;
params: Array<Place | SpreadPattern>;
returnType: t.FlowType | t.TSType | null;
returnTypeAnnotation: t.FlowType | t.TSType | null;
returnIdentifier: Identifier;
context: Array<Place>;
effects: Array<FunctionEffect> | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ function emitSelectorFn(env: Environment, keys: Array<string>): Instruction {
fnType: 'Other',
env,
params: [obj],
returnType: null,
returnTypeAnnotation: null,
returnIdentifier,
context: [],
effects: null,
Expand Down

0 comments on commit 0c9d287

Please sign in to comment.