/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
H A D | RubyMessageBuilderContext.java | 85 IRubyObject typeClass = runtime.getNil(); in optional() 86 if (args.length > 3) typeClass = args[3]; in optional() 87 msgdefAddField(context, "optional", args[0], args[1], args[2], typeClass); in optional() 106 IRubyObject typeClass = context.runtime.getNil(); in required() 107 if (args.length > 3) typeClass = args[3]; in required() 108 msgdefAddField(context, "required", args[0], args[1], args[2], typeClass); in required() 123 IRubyObject typeClass = context.runtime.getNil(); in repeated() 124 if (args.length > 3) typeClass = args[3]; in repeated() 125 msgdefAddField(context, "repeated", args[0], args[1], args[2], typeClass); in repeated() 148 IRubyObject typeClass in map() 205 msgdefAddField(ThreadContext context, String label, IRubyObject name, IRubyObject type, IRubyObject number, IRubyObject typeClass) msgdefAddField() argument [all...] |
H A D | RubyRepeatedField.java | 64 public RubyRepeatedField(Ruby runtime, RubyClass klazz, Descriptors.FieldDescriptor.Type fieldType, IRubyObject typeClass) { in RubyRepeatedField() argument 68 this.typeClass = typeClass; in RubyRepeatedField() 84 typeClass = args[1]; in initialize() 87 Utils.validateTypeClass(context, fieldType, typeClass); in initialize() 113 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in indexSet() 169 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in push() 238 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in plus() 239 typeClass.equals(repeatedField.typeClass))) in plus() 408 private IRubyObject typeClass; global() field in RubyRepeatedField [all...] |
H A D | Utils.java | 50 public static Descriptors.FieldDescriptor.Type rubyToFieldType(IRubyObject typeClass) { in rubyToFieldType() argument 51 return Descriptors.FieldDescriptor.Type.valueOf(typeClass.asJavaString().toUpperCase()); in rubyToFieldType() 68 IRubyObject value, RubyModule typeClass) { in checkType() 112 if (value.getMetaClass() != typeClass) { in checkType() 113 throw runtime.newTypeError(value, typeClass); in checkType() 119 ((RubyEnumDescriptor) typeClass.getInstanceVariable(DESCRIPTOR_INSTANCE_VAR)).getDescriptor(); in checkType() 237 IRubyObject type, IRubyObject number, IRubyObject typeClass, RubyClass cFieldDescriptor) { in msgdefCreateField() 245 if (!typeClass.isNil()) { in msgdefCreateField() 246 if (!(typeClass instanceof RubyString)) { in msgdefCreateField() 249 fieldDef.setSubmsgName(context, typeClass); in msgdefCreateField() 67 checkType(ThreadContext context, Descriptors.FieldDescriptor.Type fieldType, IRubyObject value, RubyModule typeClass) checkType() argument 236 msgdefCreateField(ThreadContext context, String label, IRubyObject name, IRubyObject type, IRubyObject number, IRubyObject typeClass, RubyClass cFieldDescriptor) msgdefCreateField() argument [all...] |
H A D | RubyMessage.java | 111 RubyClass typeClass = (RubyClass) descriptor.msgclass(context); in initialize() 112 value = (IRubyObject) typeClass.newInstance(context, value, Block.NULL_BLOCK); in initialize() 549 RubyClass typeClass = (RubyClass) ((RubyDescriptor) getDescriptorForField(context, fieldDescriptor)).msgclass(context); in convert() 550 if (!value.getMetaClass().equals(typeClass)) in convert() 591 RubyClass typeClass = (RubyClass) ((RubyDescriptor) getDescriptorForField(context, fieldDescriptor)).msgclass(context); in wrapField() 592 RubyMessage msg = (RubyMessage) typeClass.newInstance(context, Block.NULL_BLOCK); in wrapField() 607 IRubyObject typeClass = context.runtime.getNilClass(); in repeatedFieldForFieldDescriptor() 612 typeClass = ((RubyDescriptor) descriptor).msgclass(context); in repeatedFieldForFieldDescriptor() 615 typeClass = ((RubyEnumDescriptor) descriptor).enummodule(context); in repeatedFieldForFieldDescriptor() 617 return new RubyRepeatedField(context.runtime, cRepeatedField, type, typeClass); in repeatedFieldForFieldDescriptor() [all...] |
H A D | RubyOneofBuilderContext.java | 75 IRubyObject typeClass = args.length > 3 ? args[3] : context.runtime.getNil(); in optional() 77 name, type, number, typeClass, cFieldDescriptor); in optional()
|
/third_party/glslang/SPIRV/ |
H A D | SpvBuilder.cpp | 1269 Op typeClass = instr->getOpCode(); in getMostBasicTypeClass() local 1270 switch (typeClass) in getMostBasicTypeClass() 1280 return typeClass; in getMostBasicTypeClass() 1322 Op typeClass = instr->getOpCode(); in getScalarTypeId() local 1323 switch (typeClass) in getScalarTypeId() 1348 Op typeClass = instr->getOpCode(); in getContainedTypeId() local 1349 switch (typeClass) in getContainedTypeId() 1401 Op typeClass = instr.getOpCode(); in containsType() local 1402 switch (typeClass) in containsType() 1406 return typeClass in containsType() 1431 Op typeClass = instr.getOpCode(); containsPhysicalStorageBufferOrArray() local 1451 findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned value) findScalarConstant() argument 1466 findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned v1, unsigned v2) findScalarConstant() argument 1745 findCompositeConstant(Op typeClass, Id typeId, const std::vector<Id>& comps) findCompositeConstant() argument 1801 Op typeClass = getTypeClass(typeId); makeCompositeConstant() local [all...] |
H A D | SpvBuilder.h | 864 Id findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned value); 865 Id findScalarConstant(Op typeClass, Op opcode, Id typeId, unsigned v1, unsigned v2); 866 Id findCompositeConstant(Op typeClass, Id typeId, const std::vector<Id>& comps);
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | gen_framework_sc.py | 365 def __init__ (self, typeClass, name, members, apiVersion = None): 366 self.typeClass = typeClass 375 return names[self.typeClass] 1714 return type.typeClass == CompositeType.CLASS_STRUCT and \
|