# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/.
import yaml
def main(output, annotations_path): with open(annotations_path) as annotations_file:
annotations = yaml.safe_load(annotations_file)
names = []
for name, data in annotations:
glean = data.get("glean") if glean isNone: continue
if conversion isNone: # Only use a standard conversion when there is no ambiguity
is_standard = (annotation_type, glean_type) in [
("boolean", "boolean"),
("string", "string"),
("u64", "quantity"),
("string", "string_list"),
] if is_standard:
conversion = f"convert_{annotation_type}_to_{glean_type}" else:
conversion = unique_conversion
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.