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

Function field

javascript/selenium-webdriver/normalize_bidi_ast_test.mjs:32–32  ·  view source on GitHub ↗
(name, type)

Source from the content-addressed store, hash-verified

30const lit = (v) => ({ Type: 'literal', Value: v, Unwrapped: false })
31const ref = (v) => ({ Type: 'group', Value: v, Unwrapped: false })
32const field = (name, type) => ({ Name: name, Occurrence: { n: 1, m: 1 }, Type: type, Comments: [] })
33const def = (name, props) => ({ Type: 'group', Name: name, Properties: props, IsChoiceAddition: false, Comments: [] })
34const byName = (ast, n) => ast.find((d) => d.Name === n)
35

Callers 15

defineMethod · 0.50
CddlCommandClass · 0.50
CddlTypeDefinitionClass · 0.50
CddlEnumClass · 0.50
CddlModuleClass · 0.50
FieldIRClass · 0.50
DomMutationClass · 0.50
AccessibilityNodeClass · 0.50
ParamsClass · 0.50
ResultClass · 0.50
PointClass · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected