({function: func, links})
| 15 | import typographyStyles from '@adobe/spectrum-css-temp/components/typography/vars.css'; |
| 16 | |
| 17 | export function FunctionAPI({function: func, links}) { |
| 18 | let {name, parameters, return: returnType, typeParameters} = func; |
| 19 | |
| 20 | return ( |
| 21 | <TypeContext.Provider value={links}> |
| 22 | <code className={`${typographyStyles['spectrum-Code4']}`}> |
| 23 | <span className="token hljs-function">{name}</span> |
| 24 | <TypeParameters typeParameters={typeParameters} /> |
| 25 | <Indent params={parameters} open="(" close=")"> |
| 26 | <JoinList elements={parameters} joiner=", " /> |
| 27 | </Indent> |
| 28 | <span className="token punctuation">{': '}</span> |
| 29 | <Type type={returnType} /> |
| 30 | </code> |
| 31 | </TypeContext.Provider> |
| 32 | ); |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected