commit | 92c1937e1a87b7ae044a14aa79e046281af4e84e | [log] [tgz] |
---|---|---|
author | Laura Peskin <pesk@google.com> | Thu Jan 07 13:45:07 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Thu Jan 07 13:45:07 2021 +0000 |
tree | f6661e4cf5f3b32f34bce50c55f5b0270c474eb0 | |
parent | 2efe9dce20e1c2c010522b9151cc0bd5b1e12f10 [diff] |
[cm_fidl_analyzer] Define tree walker and node visitor traits Defines traits ComponentTreeWalker and ComponentNodeVisitor. Given a ComponentTree whose nodes are ComponentNodes, an implementation of ComponentNodeVisitor does some operation or analysis at each node, and an implementation of ComponentTreeWalker iterates over some subset of the tree while supplying each node to a ComponentNodeVisitor. These abstractions will be implemented by linters and analyzers which operate on ComponentDecls and, possibly, relations between ComponentDecls. Also defines a concrete implementation of ComponentTreeWalker which traverses a full ComponentTree in breadth-first order. Bug: 65840, 65842 Change-Id: Id27a54587a64317b6f3e7b7902d34e14a20dd940 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/461476 Commit-Queue: Laura Peskin <pesk@google.com> Reviewed-by: Benjamin Wright <benwright@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.