MCPcopy Create free account
hub / github.com/adamritter/fastgron / parseObjectAccessor

Method parseObjectAccessor

src/parse_path.cpp:91–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 }
90
91 ObjectAccessor parseObjectAccessor()
92 {
93 ObjectAccessor accessor;
94 match('.'); // Allow one more .
95 parseIdentifier(accessor.key);
96 if (match(':'))
97 {
98 accessor.new_key = accessor.key;
99 match('.');
100 parseIdentifier(accessor.key);
101 if (match(':'))
102 {
103 accessor.value_accessor = parseValueAccessor();
104 }
105 }
106 else
107 {
108 accessor.value_accessor = parseValueAccessor();
109 }
110 return accessor;
111 }
112
113 string parseJSONString()
114 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected