MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / leaf

Function leaf

javascript/selenium-webdriver/project_bidi_schema_test.mjs:29–30  ·  view source on GitHub ↗
(cddlName, method, paramsRef)

Source from the content-addressed store, hash-verified

27const field = (name, type, occ = { n: 1, m: 1 }) => ({ Name: name, Occurrence: occ, Type: type, Comments: [] })
28const group = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] })
29const leaf = (cddlName, method, paramsRef) =>
30 group(cddlName, [field('method', [lit(method)]), field('params', [ref(paramsRef)])])
31
32// A tiny but representative AST + model.
33const AST = [

Callers 1

Calls 4

groupFunction · 0.85
fieldFunction · 0.70
litFunction · 0.70
refFunction · 0.70

Tested by

no test coverage detected