scenePropsOf function

List<SceneProp> scenePropsOf(
  1. SceneNode node
)

The properties node carries, in file order: its kind's own after the common ones.

Implementation

List<SceneProp> scenePropsOf(SceneNode node) => [
  for (var p in sceneCommonProps)
    if (p.appliesTo(node)) p,
  ...switch (node) {
    KindNode k => k.kind.props,
    _ => [
      for (var p in sceneProps)
        if (p.kindName == null && p.owner != ScenePropOwner.any)
          if (p.appliesTo(node)) p,
    ],
  },
];