Lines Matching defs:spec

119 static void writeConstantSpecification(GeneratedFile* file, const ConstantSpecification& spec) {
120 const Constant* constant = spec.getConstant();
121 VersionInfo info = spec.getVersionInfo();
123 *file << "#define " << constant->getName() << " " << spec.getValue() << "\n\n";
127 static void writeTypeSpecification(GeneratedFile* file, const TypeSpecification& spec) {
128 const Type* type = spec.getType();
130 const VersionInfo info = spec.getVersionInfo();
134 makeAttributeTag(spec.getAttribute(), "", type->getDeprecatedApiLevel(),
137 switch (spec.getKind()) {
139 *file << spec.getSimpleType() << attribute;
146 const string name = spec.getEnumName();
152 const vector<string>& values = spec.getValues();
153 const vector<string>& valueComments = spec.getValueComments();
170 const string name = spec.getStructName();
176 const vector<string>& fields = spec.getFields();
177 const vector<string>& fieldComments = spec.getFieldComments();
200 static void writeFunctionPermutation(GeneratedFile* file, const FunctionSpecification& spec,
202 Function* function = spec.getFunction();
203 writeVersionGuardStart(file, spec.getVersionInfo(), function->getFinalVersion());
221 *file << makeAttributeTag(spec.getAttribute(), spec.isOverloadable() ? "overloadable" : "",
278 writeVersionGuardEnd(file, spec.getVersionInfo());
308 static void writeFunctionSpecification(GeneratedFile* file, const FunctionSpecification& spec) {
310 for (auto permutation : spec.getPermutations()) {
311 writeFunctionPermutation(file, spec, *permutation);
318 // We generate one header file for each spec file.
344 * encountered in the spec file.
347 for (auto spec : specFile.getConstantSpecifications()) {
348 Constant* constant = spec->getConstant();
353 writeConstantSpecification(&file, *spec);
356 for (auto spec : specFile.getTypeSpecifications()) {
357 Type* type = spec->getType();
362 writeTypeSpecification(&file, *spec);
366 for (auto spec : specFile.getFunctionSpecifications()) {
368 if (spec->isInternal()) {
371 Function* function = spec->getFunction();
376 writeFunctionSpecification(&file, *spec);