MCPcopy Index your code
hub / github.com/lutzroeder/netron / parseConstantList

Method parseConstantList

source/python.js:6344–6355  ·  view source on GitHub ↗
(type, kind, real_type)

Source from the content-addressed store, hash-verified

6342 */
6343 }
6344 parseConstantList(type, kind, real_type) {
6345 const L = this.L;
6346 const tok = L.expect('[');
6347 const vs = [];
6348 if (L.cur().kind !== ']') {
6349 do {
6350 vs.push(this.parseSingleConstant(type, kind, real_type));
6351 } while (L.nextIf(','));
6352 }
6353 L.expect(']');
6354 return this.convertToList(type, kind, tok.range, vs);
6355 }
6356 convertToList(type, kind, range, vs) {
6357 switch (kind) {
6358 case torch._C.TypeKind.ComplexType:

Callers 1

parseDefaultValueMethod · 0.80

Calls 6

curMethod · 0.80
parseSingleConstantMethod · 0.80
nextIfMethod · 0.80
convertToListMethod · 0.80
expectMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected