| { |
| "version": "0.0.1", |
| "name": "fidl.test.consts", |
| "library_dependencies": [], |
| "bits_declarations": [ |
| { |
| "name": "fidl.test.consts/BitsType", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 23, |
| "column": 6, |
| "length": 8 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "mask": "3", |
| "members": [ |
| { |
| "name": "VALUE", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 24, |
| "column": 5, |
| "length": 5 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "0x00000001", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "0x00000001" |
| } |
| } |
| }, |
| { |
| "name": "true", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 25, |
| "column": 5, |
| "length": 4 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| } |
| } |
| ], |
| "strict": true |
| } |
| ], |
| "const_declarations": [ |
| { |
| "name": "fidl.test.consts/ENABLED_FLAG", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 3, |
| "column": 12, |
| "length": 12 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "bool" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "true", |
| "expression": "true", |
| "literal": { |
| "kind": "true", |
| "value": "true", |
| "expression": "true" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/OFFSET", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 4, |
| "column": 12, |
| "length": 6 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int8" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "-33", |
| "expression": "-33", |
| "literal": { |
| "kind": "numeric", |
| "value": "-33", |
| "expression": "-33" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/ANSWER", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 5, |
| "column": 14, |
| "length": 6 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint16" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "42", |
| "expression": "42", |
| "literal": { |
| "kind": "numeric", |
| "value": "42", |
| "expression": "42" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/ANSWER_IN_BINARY", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 6, |
| "column": 14, |
| "length": 16 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint16" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "42", |
| "expression": "0b101010", |
| "literal": { |
| "kind": "numeric", |
| "value": "42", |
| "expression": "0b101010" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/POPULATION_USA_2018", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 7, |
| "column": 14, |
| "length": 19 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint32" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "330000000", |
| "expression": "330000000", |
| "literal": { |
| "kind": "numeric", |
| "value": "330000000", |
| "expression": "330000000" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/DIAMOND", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 8, |
| "column": 14, |
| "length": 7 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint64" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1746410393481133080", |
| "expression": "0x183c7effff7e3c18", |
| "literal": { |
| "kind": "numeric", |
| "value": "1746410393481133080", |
| "expression": "0x183c7effff7e3c18" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/FUCHSIA", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 9, |
| "column": 14, |
| "length": 7 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "uint64" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "4054509061583223046", |
| "expression": "4054509061583223046", |
| "literal": { |
| "kind": "numeric", |
| "value": "4054509061583223046", |
| "expression": "4054509061583223046" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/USERNAME", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 10, |
| "column": 14, |
| "length": 8 |
| }, |
| "type": { |
| "kind": "string", |
| "nullable": false |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "\"squeenze\"", |
| "expression": "\"\\\"squeenze\\\"\"", |
| "literal": { |
| "kind": "string", |
| "value": "\"squeenze\"", |
| "expression": "\"\\\"squeenze\\\"\"" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/MIN_TEMP", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 11, |
| "column": 15, |
| "length": 8 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "float32" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "-273.15", |
| "expression": "-273.15", |
| "literal": { |
| "kind": "numeric", |
| "value": "-273.15", |
| "expression": "-273.15" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/CONVERSION_FACTOR", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 12, |
| "column": 15, |
| "length": 17 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "float64" |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1.41421", |
| "expression": "1.41421358", |
| "literal": { |
| "kind": "numeric", |
| "value": "1.41421", |
| "expression": "1.41421358" |
| } |
| } |
| }, |
| { |
| "name": "fidl.test.consts/enumVal", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 18, |
| "column": 16, |
| "length": 7 |
| }, |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.consts/EnumType", |
| "nullable": false |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "1", |
| "expression": "EnumType.VALUE", |
| "identifier": "fidl.test.consts/EnumType.VALUE" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/enumPrimitiveVal", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 19, |
| "column": 13, |
| "length": 16 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "1", |
| "expression": "EnumType.VALUE", |
| "identifier": "fidl.test.consts/EnumType.VALUE" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/enumTrue", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 20, |
| "column": 16, |
| "length": 8 |
| }, |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.consts/EnumType", |
| "nullable": false |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "2", |
| "expression": "EnumType.true", |
| "identifier": "fidl.test.consts/EnumType.true" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/enumPrimitiveTrue", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 21, |
| "column": 13, |
| "length": 17 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "2", |
| "expression": "EnumType.true", |
| "identifier": "fidl.test.consts/EnumType.true" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/bitsVal", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 27, |
| "column": 16, |
| "length": 7 |
| }, |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.consts/BitsType", |
| "nullable": false |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "1", |
| "expression": "BitsType.VALUE", |
| "identifier": "fidl.test.consts/BitsType.VALUE" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/bitsPrimitiveVal", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 28, |
| "column": 13, |
| "length": 16 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "1", |
| "expression": "BitsType.VALUE", |
| "identifier": "fidl.test.consts/BitsType.VALUE" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/bitsTrue", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 29, |
| "column": 16, |
| "length": 8 |
| }, |
| "type": { |
| "kind": "identifier", |
| "identifier": "fidl.test.consts/BitsType", |
| "nullable": false |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "2", |
| "expression": "BitsType.true", |
| "identifier": "fidl.test.consts/BitsType.true" |
| } |
| }, |
| { |
| "name": "fidl.test.consts/bitsPrimitiveTrue", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 30, |
| "column": 13, |
| "length": 17 |
| }, |
| "type": { |
| "kind": "primitive", |
| "subtype": "int32" |
| }, |
| "value": { |
| "kind": "identifier", |
| "value": "2", |
| "expression": "BitsType.true", |
| "identifier": "fidl.test.consts/BitsType.true" |
| } |
| } |
| ], |
| "enum_declarations": [ |
| { |
| "name": "fidl.test.consts/EnumType", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 14, |
| "column": 6, |
| "length": 8 |
| }, |
| "type": "int32", |
| "members": [ |
| { |
| "name": "VALUE", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 15, |
| "column": 5, |
| "length": 5 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "1", |
| "expression": "1", |
| "literal": { |
| "kind": "numeric", |
| "value": "1", |
| "expression": "1" |
| } |
| } |
| }, |
| { |
| "name": "true", |
| "location": { |
| "filename": "../../tools/fidl/fidlc/testdata/consts.test.fidl", |
| "line": 16, |
| "column": 5, |
| "length": 4 |
| }, |
| "value": { |
| "kind": "literal", |
| "value": "2", |
| "expression": "2", |
| "literal": { |
| "kind": "numeric", |
| "value": "2", |
| "expression": "2" |
| } |
| } |
| } |
| ], |
| "strict": true |
| } |
| ], |
| "experimental_resource_declarations": [], |
| "interface_declarations": [], |
| "service_declarations": [], |
| "struct_declarations": [], |
| "table_declarations": [], |
| "union_declarations": [], |
| "type_alias_declarations": [], |
| "declaration_order": [ |
| "fidl.test.consts/USERNAME", |
| "fidl.test.consts/POPULATION_USA_2018", |
| "fidl.test.consts/OFFSET", |
| "fidl.test.consts/MIN_TEMP", |
| "fidl.test.consts/FUCHSIA", |
| "fidl.test.consts/EnumType", |
| "fidl.test.consts/enumVal", |
| "fidl.test.consts/enumTrue", |
| "fidl.test.consts/enumPrimitiveVal", |
| "fidl.test.consts/enumPrimitiveTrue", |
| "fidl.test.consts/ENABLED_FLAG", |
| "fidl.test.consts/DIAMOND", |
| "fidl.test.consts/CONVERSION_FACTOR", |
| "fidl.test.consts/BitsType", |
| "fidl.test.consts/bitsVal", |
| "fidl.test.consts/bitsTrue", |
| "fidl.test.consts/bitsPrimitiveVal", |
| "fidl.test.consts/bitsPrimitiveTrue", |
| "fidl.test.consts/ANSWER_IN_BINARY", |
| "fidl.test.consts/ANSWER" |
| ], |
| "declarations": { |
| "fidl.test.consts/BitsType": "bits", |
| "fidl.test.consts/ENABLED_FLAG": "const", |
| "fidl.test.consts/OFFSET": "const", |
| "fidl.test.consts/ANSWER": "const", |
| "fidl.test.consts/ANSWER_IN_BINARY": "const", |
| "fidl.test.consts/POPULATION_USA_2018": "const", |
| "fidl.test.consts/DIAMOND": "const", |
| "fidl.test.consts/FUCHSIA": "const", |
| "fidl.test.consts/USERNAME": "const", |
| "fidl.test.consts/MIN_TEMP": "const", |
| "fidl.test.consts/CONVERSION_FACTOR": "const", |
| "fidl.test.consts/enumVal": "const", |
| "fidl.test.consts/enumPrimitiveVal": "const", |
| "fidl.test.consts/enumTrue": "const", |
| "fidl.test.consts/enumPrimitiveTrue": "const", |
| "fidl.test.consts/bitsVal": "const", |
| "fidl.test.consts/bitsPrimitiveVal": "const", |
| "fidl.test.consts/bitsTrue": "const", |
| "fidl.test.consts/bitsPrimitiveTrue": "const", |
| "fidl.test.consts/EnumType": "enum" |
| } |
| } |