MCPcopy Create free account
hub / github.com/angular/angular / fn

Function fn

packages/compiler/src/output/output_ast.ts:2009–2017  ·  view source on GitHub ↗
(
  params: FnParam[],
  body: Statement[],
  type?: Type | null,
  sourceSpan?: ParseSourceSpan | null,
  name?: string | null,
)

Source from the content-addressed store, hash-verified

2007}
2008
2009export function fn(
2010 params: FnParam[],
2011 body: Statement[],
2012 type?: Type | null,
2013 sourceSpan?: ParseSourceSpan | null,
2014 name?: string | null,
2015): FunctionExpr {
2016 return new FunctionExpr(params, body, type, sourceSpan, name);
2017}
2018
2019export function arrowFn(
2020 params: FnParam[],

Callers 13

executeFunctionMethod · 0.70
runExtraChecksFunction · 0.50
inPhaseMethod · 0.50
inPhaseMethod · 0.50
inPhaseMethod · 0.50
runLocalExtraChecksFunction · 0.50
perf.tsFile · 0.50
sliceMethod · 0.50
sliceAsyncMethod · 0.50
withSpanMethod · 0.50
withCommentsMethod · 0.50
withSpanFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected