Home
last modified time | relevance | path

Searched refs:annotations (Results 1 - 25 of 138) sorted by relevance

123456

/third_party/protobuf/src/google/protobuf/compiler/
H A Dannotation_test_util.cc105 std::vector<const GeneratedCodeInfo::Annotation*>* annotations) { in FindAnnotationsOnPath()
119 annotations->push_back(annotation); in FindAnnotationsOnPath()
127 std::vector<const GeneratedCodeInfo::Annotation*> annotations; in FindAnnotationOnPath() local
128 FindAnnotationsOnPath(info, source_file, path, &annotations); in FindAnnotationOnPath()
129 if (annotations.empty()) { in FindAnnotationOnPath()
132 return annotations[0]; in FindAnnotationOnPath()
137 const std::vector<const GeneratedCodeInfo::Annotation*>& annotations, in AtLeastOneAnnotationMatchesSubstring()
140 i = annotations.begin(), in AtLeastOneAnnotationMatchesSubstring()
141 e = annotations.end(); in AtLeastOneAnnotationMatchesSubstring()
159 std::vector<const GeneratedCodeInfo::Annotation*> annotations; in AnnotationMatchesSubstring() local
102 FindAnnotationsOnPath( const GeneratedCodeInfo& info, const std::string& source_file, const std::vector<int>& path, std::vector<const GeneratedCodeInfo::Annotation*>* annotations) FindAnnotationsOnPath() argument
135 AtLeastOneAnnotationMatchesSubstring( const std::string& file_content, const std::vector<const GeneratedCodeInfo::Annotation*>& annotations, const std::string& expected_text) AtLeastOneAnnotationMatchesSubstring() argument
[all...]
H A Dmock_code_generator.cc171 GeneratedCodeInfo annotations; in CheckGeneratedAnnotations() local
172 GOOGLE_CHECK(TextFormat::ParseFromString(meta_content, &annotations)); in CheckGeneratedAnnotations()
173 ASSERT_EQ(3, annotations.annotation_size()); in CheckGeneratedAnnotations()
175 annotations.annotation(0)); in CheckGeneratedAnnotations()
177 annotations.annotation(1)); in CheckGeneratedAnnotations()
179 annotations.annotation(2)); in CheckGeneratedAnnotations()
267 GeneratedCodeInfo annotations; in Generate() local
269 &annotations); in Generate()
296 if (!TextFormat::Print(annotations, meta_output.get())) { in Generate()
H A Dannotation_test_util.h38 // Utilities that assist in writing tests for generator annotations.
86 std::vector<const GeneratedCodeInfo::Annotation*>* annotations);
89 // couldn't). If there are several annotations for given path, returns the first
97 // Returns true if at least one of the provided annotations covers a given
101 const std::vector<const GeneratedCodeInfo::Annotation*>& annotations,
/third_party/ffmpeg/libavformat/
H A Dau.c252 static int au_get_annotations(AVFormatContext *s, AVBPrint *annotations) in au_get_annotations() argument
269 av_bprint_chars(annotations, '\n', 1); in au_get_annotations()
270 av_bprintf(annotations, "%s=%s", keys[i], t->value); in au_get_annotations()
275 av_bprint_chars(annotations, '\0', 8); in au_get_annotations()
276 return av_bprint_is_complete(annotations) ? 0 : AVERROR(ENOMEM); in au_get_annotations()
285 AVBPrint annotations; in au_write_header() local
298 av_bprint_init(&annotations, 0, INT_MAX - 24); in au_write_header()
299 ret = au_get_annotations(s, &annotations); in au_write_header()
302 au->header_size = 24 + annotations.len & ~7; in au_write_header()
310 avio_write(pb, annotations in au_write_header()
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dprinter.cc282 std::vector<AnnotationCollector::Annotation> annotations; in FormatInternal() local
287 format = WriteVariable(args, vars, format, &arg_index, &annotations); in FormatInternal()
302 if (!annotations.empty()) { in FormatInternal()
310 int* arg_index, std::vector<AnnotationCollector::Annotation>* annotations) { in WriteVariable()
337 annotations->push_back({{offset_, 0}, args[idx]}); in WriteVariable()
340 GOOGLE_CHECK(annotations); in WriteVariable()
341 if (annotations->empty()) { in WriteVariable()
344 auto& a = annotations->back(); in WriteVariable()
347 annotations->pop_back(); in WriteVariable()
307 WriteVariable( const std::vector<std::string>& args, const std::map<std::string, std::string>& vars, const char* format, int* arg_index, std::vector<AnnotationCollector::Annotation>* annotations) WriteVariable() argument
/third_party/rust/crates/bindgen/bindgen/ir/
H A Denum_ty.rs8 use crate::ir::annotations::Annotations;
103 let annotations = Annotations::new(&cursor); in from_ty()
111 let annotations = annotations.as_ref()?; in from_ty()
112 if annotations.hide() { in from_ty()
114 } else if annotations.constify_enum_variant() { in from_ty()
127 annotations in from_ty()
H A Dcomp.rs4 use super::annotations::Annotations;
152 /// Get the annotations for this field.
153 fn annotations(&self) -> &Annotations; in annotations() functions
420 fn annotations(&self) -> &Annotations { in annotations() functions
421 self.data.annotations() in annotations()
442 annotations: Option<Annotations>, in new()
451 annotations: annotations.unwrap_or_default(), in new()
480 fn annotations(&self) -> &Annotations { in annotations() functions
481 self.0.annotations() in annotations()
913 fn annotations(&self) -> &Annotations { annotations() functions
[all...]
H A Ditem.rs5 use super::annotations::Annotations;
372 /// An item may have a comment, and annotations (see the `annotations` module).
374 /// Note that even though we parse all the types of annotations in comments, not
376 /// `annotations` module.
408 annotations: Annotations,
432 annotations: Option<Annotations>, in new()
446 annotations: annotations.unwrap_or_default(), in new()
629 /// Get this item's annotations
630 pub fn annotations(&self) -> &Annotations { annotations() functions
[all...]
/third_party/skia/third_party/externals/spirv-tools/source/opt/
H A Dflatten_decoration_pass.cpp46 auto annotations = context()->annotations(); in Process() local
50 for (const auto& inst : annotations) { in Process()
74 auto inst_iter = annotations.begin(); in Process()
76 while (inst_iter != context()->annotations().end()) { in Process()
H A Daggressive_dead_code_elim_pass.cpp174 // This must be a decoration group. We go through annotations in a specific in IsTargetDead()
590 for (auto& anno : get_module()->annotations()) { in InitializeModuleScopeLiveInstructions()
746 std::vector<Instruction*> annotations; in ProcessGlobalValues() local
747 for (auto& inst : get_module()->annotations()) annotations.push_back(&inst); in ProcessGlobalValues()
748 std::sort(annotations.begin(), annotations.end(), DecorationLess()); in ProcessGlobalValues()
749 for (auto annotation : annotations) { in ProcessGlobalValues()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
H A Dflatten_decoration_pass.cpp46 auto annotations = context()->annotations(); in Process() local
50 for (const auto& inst : annotations) { in Process()
74 auto inst_iter = annotations.begin(); in Process()
76 while (inst_iter != context()->annotations().end()) { in Process()
H A Daggressive_dead_code_elim_pass.cpp174 // This must be a decoration group. We go through annotations in a specific in IsTargetDead()
590 for (auto& anno : get_module()->annotations()) { in InitializeModuleScopeLiveInstructions()
746 std::vector<Instruction*> annotations; in ProcessGlobalValues() local
747 for (auto& inst : get_module()->annotations()) annotations.push_back(&inst); in ProcessGlobalValues()
748 std::sort(annotations.begin(), annotations.end(), DecorationLess()); in ProcessGlobalValues()
749 for (auto annotation : annotations) { in ProcessGlobalValues()
/third_party/spirv-tools/source/opt/
H A Dflatten_decoration_pass.cpp46 auto annotations = context()->annotations(); in Process() local
50 for (const auto& inst : annotations) { in Process()
74 auto inst_iter = annotations.begin(); in Process()
76 while (inst_iter != context()->annotations().end()) { in Process()
H A Daggressive_dead_code_elim_pass.cpp171 // This must be a decoration group. We go through annotations in a specific in IsTargetDead()
595 for (auto& anno : get_module()->annotations()) { in InitializeModuleScopeLiveInstructions()
772 std::vector<Instruction*> annotations; in ProcessGlobalValues() local
773 for (auto& inst : get_module()->annotations()) annotations.push_back(&inst); in ProcessGlobalValues()
774 std::sort(annotations.begin(), annotations.end(), DecorationLess()); in ProcessGlobalValues()
775 for (auto annotation : annotations) { in ProcessGlobalValues()
/third_party/typescript/tests/baselines/reference/
H A DAPISample_jsdoc.js41 // if we have @TJS-... annotations, we have to parse them
46 // special annotations
68 const annotations: Annotations = jsDocTags.reduce((result: Annotations, jsDocTag: ts.JSDocTagInfo) => {
76 return Object.keys(annotations).length ? annotations : undefined;
149 // if we have @TJS-... annotations, we have to parse them
155 // special annotations
170 var annotations = jsDocTags.reduce(function (result, jsDocTag) {
177 return Object.keys(annotations).length ? annotations
[all...]
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_generator.cc141 GeneratedCodeInfo annotations; in Generate() local
143 &annotations); in Generate()
153 annotations.SerializeToZeroCopyStream(info_output.get()); in Generate()
160 GeneratedCodeInfo annotations; in Generate() local
162 &annotations); in Generate()
172 annotations.SerializeToZeroCopyStream(info_output.get()); in Generate()
/third_party/node/deps/v8/src/torque/
H A Dtorque-parser.cc614 auto annotations = child_results->NextAs<std::vector<Annotation>>(); in HasAnnotation() local
615 if (annotations.size()) { in HasAnnotation()
616 if (annotations.size() > 1 || annotations[0].name->value != annotation) { in HasAnnotation()
862 AnnotationSet annotations(child_results, {}, in ProcessIfAnnotation()
865 annotations.GetStringParam(ANNOTATION_IF)) { in ProcessIfAnnotation()
869 annotations.GetStringParam(ANNOTATION_IFNOT)) { in ProcessIfAnnotation()
944 int GetAnnotationValue(const AnnotationSet& annotations, const char* name, in GetAnnotationValue() argument
946 auto opt_value = annotations.GetIntParam(name); in GetAnnotationValue()
951 const AnnotationSet& annotations) { in MakeInstanceTypeConstraints()
950 MakeInstanceTypeConstraints( const AnnotationSet& annotations) MakeInstanceTypeConstraints() argument
2375 Symbol* annotations = List<Annotation>(&annotation); global() member
[all...]
/third_party/python/Objects/
H A Dmoduleobject.c891 PyObject *annotations; in module_get_annotations() local
894 annotations = PyDict_GetItemWithError(dict, &_Py_ID(__annotations__)); in module_get_annotations()
900 if (annotations) { in module_get_annotations()
901 Py_INCREF(annotations); in module_get_annotations()
904 annotations = PyDict_New(); in module_get_annotations()
905 if (annotations) { in module_get_annotations()
907 dict, &_Py_ID(__annotations__), annotations); in module_get_annotations()
909 Py_CLEAR(annotations); in module_get_annotations()
914 return annotations; in module_get_annotations()
H A Dfuncobject.c320 PyFunction_SetAnnotations(PyObject *op, PyObject *annotations) in PyFunction_SetAnnotations() argument
326 if (annotations == Py_None) in PyFunction_SetAnnotations()
327 annotations = NULL; in PyFunction_SetAnnotations()
328 else if (annotations && PyDict_Check(annotations)) { in PyFunction_SetAnnotations()
329 Py_INCREF(annotations); in PyFunction_SetAnnotations()
333 "non-dict annotations"); in PyFunction_SetAnnotations()
337 Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); in PyFunction_SetAnnotations()
/third_party/protobuf/src/google/protobuf/compiler/java/
H A Djava_shared_code_generator.cc69 GeneratedCodeInfo annotations; in Generate() local
71 &annotations); in Generate()
109 annotations.SerializeToZeroCopyStream(info_output.get()); in Generate()
H A Djava_generator.cc155 GeneratedCodeInfo annotations; in Generate() local
157 &annotations); in Generate()
171 annotations.SerializeToZeroCopyStream(info_output.get()); in Generate()
/third_party/python/Lib/test/
H A Dtest_type_annotations.py8 # the annotations dict is stored in type.__dict__.
9 # a freshly created type shouldn't have an annotations dict yet.
117 annotations = ns["C"].__annotations__
119 annotations = ns["__annotations__"]
120 self.assertEqual(annotations, {"x": int})
H A Dann_module7.py3 from __future__ import annotations namespace
H A Dann_module6.py3 from __future__ import annotations namespace
/third_party/python/Doc/tools/extensions/
H A Dc_annotations.py6 Supports annotations for C API elements:
8 * reference count annotations for C API functions. Based on
11 * stable API annotations
176 annotations = Annotations(
180 app.connect('doctree-read', annotations.add_annotations)
191 for record in annotations.stable_abi_data.values():

Completed in 34 milliseconds

123456