MCPcopy Index your code
hub / github.com/gre/gl-react / aggregateInfo

Function aggregateInfo

packages/gl-react/src/VisitorLogger.ts:8–18  ·  view source on GitHub ↗
(info: any)

Source from the content-addressed store, hash-verified

6import Visitor from "./Visitor";
7
8const aggregateInfo = (info: any): any[] =>
9 Array.isArray(info)
10 ? info.reduce(
11 (acc: any[], info: any) => acc.concat(aggregateInfo(info)),
12 []
13 )
14 : [
15 String(
16 (info.dependency && info.dependency.getGLName()) || info.initialObj
17 ),
18 ].concat(info.textureOptions ? [info.textureOptions] : []);
19
20export default class VisitorLogger extends Visitor {
21 groupNestedLvl = 0;

Callers 1

onNodeDrawMethod · 0.85

Calls 1

getGLNameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…