Lines Matching refs:spec

119 static void writeConstantSpecification(GeneratedFile* file, const ConstantSpecification& spec) {  in writeConstantSpecification()  argument
120 const Constant* constant = spec.getConstant(); in writeConstantSpecification()
121 VersionInfo info = spec.getVersionInfo(); in writeConstantSpecification()
123 *file << "static const " << spec.getType() << " " << constant->getName() in writeConstantSpecification()
124 << " = " << spec.getValue() << ";\n\n"; in writeConstantSpecification()
128 static void writeTypeSpecification(GeneratedFile* file, const TypeSpecification& spec) { in writeTypeSpecification() argument
129 const Type* type = spec.getType(); in writeTypeSpecification()
131 const VersionInfo info = spec.getVersionInfo(); in writeTypeSpecification()
135 makeAttributeTag(spec.getAttribute(), "", type->getDeprecatedApiLevel(), in writeTypeSpecification()
138 switch (spec.getKind()) { in writeTypeSpecification()
140 *file << spec.getSimpleType() << attribute; in writeTypeSpecification()
147 const string name = spec.getEnumName(); in writeTypeSpecification()
153 const vector<string>& values = spec.getValues(); in writeTypeSpecification()
154 const vector<string>& valueComments = spec.getValueComments(); in writeTypeSpecification()
171 const string name = spec.getStructName(); in writeTypeSpecification()
177 const vector<string>& fields = spec.getFields(); in writeTypeSpecification()
178 const vector<string>& fieldComments = spec.getFieldComments(); in writeTypeSpecification()
201 static void writeFunctionPermutation(GeneratedFile* file, const FunctionSpecification& spec, in writeFunctionPermutation() argument
203 Function* function = spec.getFunction(); in writeFunctionPermutation()
204 writeVersionGuardStart(file, spec.getVersionInfo(), function->getFinalVersion()); in writeFunctionPermutation()
222 *file << makeAttributeTag(spec.getAttribute(), spec.isOverloadable() ? "overloadable" : "", in writeFunctionPermutation()
279 writeVersionGuardEnd(file, spec.getVersionInfo()); in writeFunctionPermutation()
309 static void writeFunctionSpecification(GeneratedFile* file, const FunctionSpecification& spec) { in writeFunctionSpecification() argument
311 for (auto permutation : spec.getPermutations()) { in writeFunctionSpecification()
312 writeFunctionPermutation(file, spec, *permutation); in writeFunctionSpecification()
348 for (auto spec : specFile.getConstantSpecifications()) { in writeHeaderFile() local
349 Constant* constant = spec->getConstant(); in writeHeaderFile()
354 writeConstantSpecification(&file, *spec); in writeHeaderFile()
357 for (auto spec : specFile.getTypeSpecifications()) { in writeHeaderFile() local
358 Type* type = spec->getType(); in writeHeaderFile()
363 writeTypeSpecification(&file, *spec); in writeHeaderFile()
367 for (auto spec : specFile.getFunctionSpecifications()) { in writeHeaderFile() local
369 if (spec->isInternal()) { in writeHeaderFile()
372 Function* function = spec->getFunction(); in writeHeaderFile()
377 writeFunctionSpecification(&file, *spec); in writeHeaderFile()