Searched refs:reflect (Results 1 – 25 of 2295) sorted by relevance
12345678910>>...92
46 in := reflect.ValueOf(src)50 out := reflect.New(in.Type().Elem())83 in := reflect.ValueOf(src)84 out := reflect.ValueOf(dst)101 func mergeStruct(out, in reflect.Value) {135 func mergeAny(out, in reflect.Value, viaPtr bool, prop *Properties) {139 out.Set(reflect.ValueOf(Clone(in.Interface().(Message))))147 case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64,148 reflect.String, reflect.Uint32, reflect.Uint64:153 case reflect.Interface:[all …]
116 v := reflect.ValueOf(x)117 return v.Kind() == reflect.Ptr && v.IsNil()174 t := reflect.TypeOf(ed.ExtensionType)175 return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8236 if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b {248 base reflect.Type260 key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field}277 prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil)383 t := reflect.TypeOf(extension.ExtensionType)396 if t.Kind() != reflect.Ptr {[all …]
608 setDefaults(reflect.ValueOf(pb), true, false)612 func setDefaults(v reflect.Value, recur, zeros bool) {639 case reflect.Bool:645 case reflect.Float32:651 case reflect.Float64:657 case reflect.Int32:661 f.Set(reflect.New(ft.Elem()))673 case reflect.Int64:679 case reflect.String:685 case reflect.Uint8:[all …]
76 v1, v2 := reflect.ValueOf(a), reflect.ValueOf(b)80 if v1.Kind() == reflect.Ptr {89 if v1.Kind() != reflect.Struct {96 func equalStruct(v1, v2 reflect.Value) bool {104 if f.Type.Kind() == reflect.Ptr {145 func equalAny(v1, v2 reflect.Value, prop *Properties) bool {152 case reflect.Bool:154 case reflect.Float32, reflect.Float64:156 case reflect.Int32, reflect.Int64:158 case reflect.Interface:[all …]
114 Type reflect.Type // pointer to generated struct type for this oneof field147 stype reflect.Type // set for struct types only150 mtype reflect.Type // set for map types only260 var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem()263 func (p *Properties) setFieldProps(typ reflect.Type, f *reflect.StructField, lockGetProp bool) {265 case reflect.Ptr:266 if t1.Elem().Kind() == reflect.Struct {270 case reflect.Slice:271 if t2 := t1.Elem(); t2.Kind() == reflect.Ptr && t2.Elem().Kind() == reflect.Struct {275 case reflect.Map:[all …]
72 di = getDiscardInfo(reflect.TypeOf(m).Elem())79 typ reflect.Type94 discardInfoMap = map[reflect.Type]*discardInfo{}98 func getDiscardInfo(t reflect.Type) *discardInfo {160 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {164 if tf.Kind() == reflect.Ptr {168 if isPointer && isSlice && tf.Kind() != reflect.Struct {173 case reflect.Struct:196 case reflect.Map:201 if tf.Elem().Kind() == reflect.Ptr { // Proto struct (e.g., *T)[all …]
47 mi = getMergeInfo(reflect.TypeOf(dst).Elem())54 typ reflect.Type88 mergeInfoMap = map[reflect.Type]*mergeInfo{}92 func getMergeInfo(t reflect.Type) *mergeInfo {187 case reflect.Ptr, reflect.Slice, reflect.String:192 case reflect.Bool:194 case reflect.Int32, reflect.Uint32, reflect.Float32:196 case reflect.Int64, reflect.Uint64, reflect.Float64:203 if tf.Kind() == reflect.Slice && tf.Elem().Kind() != reflect.Uint8 {207 if tf.Kind() == reflect.Ptr {[all …]
53 func toField(f *reflect.StructField) field {71 v reflect.Value77 return pointer{v: reflect.ValueOf(*i)}83 v := reflect.ValueOf(*i)84 u := reflect.New(v.Type())93 func valToPointer(v reflect.Value) pointer {110 func grow(s reflect.Value) reflect.Value {115 s.Set(reflect.Append(s, reflect.Zero(s.Type().Elem())))130 var int32ptr = reflect.TypeOf((*int32)(nil))147 if p.v.Type().Elem().Elem() == reflect.TypeOf(int32(0)) {[all …]
368 func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError {395 func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError {410 if typ.Kind() == reflect.Ptr {412 if typ.Elem().Kind() == reflect.String {415 } else if typ.Kind() == reflect.Slice {417 if typ.Elem().Kind() != reflect.Ptr {420 } else if typ.Kind() == reflect.String {435 func (p *textParser) readStruct(sv reflect.Value, terminator string) error {492 v := reflect.New(mt.Elem())516 for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) {[all …]
3 pub use crate::reflect::acc::v1::make_map_accessor;4 pub use crate::reflect::acc::v1::make_option_accessor;5 pub use crate::reflect::acc::v1::make_repeated_field_accessor;6 pub use crate::reflect::acc::v1::make_simple_field_accessor;7 pub use crate::reflect::acc::v1::make_singular_bool_accessor;8 pub use crate::reflect::acc::v1::make_singular_bytes_accessor;9 pub use crate::reflect::acc::v1::make_singular_enum_accessor;10 pub use crate::reflect::acc::v1::make_singular_f32_accessor;11 pub use crate::reflect::acc::v1::make_singular_f64_accessor;12 pub use crate::reflect::acc::v1::make_singular_field_accessor;[all …]
... /util.runtime.kotlin_module kotlin/ kotlin/reflect/ kotlin/reflect/full/ kotlin/reflect
1 Line 42) method.isSynthetic() ==> java.lang.reflect.Method.isSynthetic()2 Line 42) method.isBridge() ==> java.lang.reflect.Method.isBridge()3 Line 50) method.getName() ==> java.lang.reflect.Method.getName()5 Line 77) method.getDeclaringClass() ==> java.lang.reflect.Method.getDeclaringClass()6 Line 78) method.getDeclaringClass() ==> java.lang.reflect.Method.getDeclaringClass()8 Line 80) method.getDeclaringClass() ==> java.lang.reflect.Method.getDeclaringClass()9 Line 81) method.getDeclaringClass() ==> java.lang.reflect.Method.getDeclaringClass()10 Line 83) method.getDeclaringClass() ==> java.lang.reflect.Method.getDeclaringClass()11 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…12 Line 89) method.getGenericReturnType() ==> java.lang.reflect.Method.getGenericReturnType()[all …]
5 Line 55) tv.getGenericDeclaration() ==> java.lang.reflect.TypeVariable.getGenericDeclaration()7 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…8 Line 60) pt.getRawType() ==> java.lang.reflect.ParameterizedType.getRawType()11 …Line 62) pt.getActualTypeArguments() ==> java.lang.reflect.ParameterizedType.getActualTypeArgument…14 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…23 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…26 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…27 …Line 81) genericArrayType.getGenericComponentType() ==> java.lang.reflect.GenericArrayType.getGene…28 Line 84) wildcardType.getLowerBounds() ==> java.lang.reflect.WildcardType.getLowerBounds()29 Line 84) wildcardType.getUpperBounds() ==> java.lang.reflect.WildcardType.getUpperBounds()[all …]
2 Line 13) o1.getName() ==> java.lang.reflect.Method.getName()3 Line 13) o2.getName() ==> java.lang.reflect.Method.getName()4 Line 15) o1.getParameterCount() ==> java.lang.reflect.Method.getParameterCount()5 Line 15) o2.getParameterCount() ==> java.lang.reflect.Method.getParameterCount()6 Line 17) o1.getParameterCount() ==> java.lang.reflect.Method.getParameterCount()7 …onmodel.comparators.ParameterComparator.compare(java.lang.reflect.Parameter, java.lang.reflect.Par…8 Line 18) o1.getParameters() ==> java.lang.reflect.Executable.getParameters()9 Line 18) o2.getParameters() ==> java.lang.reflect.Executable.getParameters()11 Line 21) o1.getReturnType() ==> java.lang.reflect.Method.getReturnType()12 Line 21) o2.getReturnType() ==> java.lang.reflect.Method.getReturnType()
1 Line 43) constructor.getDeclaringClass() ==> java.lang.reflect.Constructor.getDeclaringClass()2 Line 48) constructor.getParameterCount() ==> java.lang.reflect.Constructor.getParameterCount()6 Line 57) constructor.isVarArgs() ==> java.lang.reflect.Constructor.isVarArgs()7 Line 58) constructor.getParameterCount() ==> java.lang.reflect.Constructor.getParameterCount()8 Line 60) constructor.getParameterTypes() ==> java.lang.reflect.Constructor.getParameterTypes()9 …Line 60) constructor.getGenericParameterTypes() ==> java.lang.reflect.Constructor.getGenericParame…10 Line 65) constructor.getName() ==> java.lang.reflect.Constructor.getName()12 Line 70) constructor.getModifiers() ==> java.lang.reflect.Constructor.getModifiers()16 Line 75) constructor.getTypeParameters() ==> java.lang.reflect.Constructor.getTypeParameters()
2 …er.symbolsolver.reflectionmodel.ReflectionFactory.typeUsageFor(java.lang.reflect.Type, com.github.…3 Line 56) field.getGenericType() ==> java.lang.reflect.Field.getGenericType()4 Line 61) field.getName() ==> java.lang.reflect.Field.getName()5 Line 66) Modifier.isStatic(field.getModifiers()) ==> java.lang.reflect.Modifier.isStatic(int)6 Line 66) field.getModifiers() ==> java.lang.reflect.Field.getModifiers()8 Line 76) field.getDeclaringClass() ==> java.lang.reflect.Field.getDeclaringClass()10 Line 95) field.getModifiers() ==> java.lang.reflect.Field.getModifiers()
103 return reflect.New(mt.Elem()).Interface().(proto.Message), nil130 v := reflect.ValueOf(pb)131 if pb == nil || (v.Kind() == reflect.Ptr && v.IsNil()) {169 wktType = reflect.TypeOf((*wkt)(nil)).Elem()170 messageType = reflect.TypeOf((*proto.Message)(nil)).Elem()205 s := reflect.ValueOf(v).Elem()305 case reflect.Chan, reflect.Func, reflect.Interface:313 case reflect.Bool:317 case reflect.Int32, reflect.Int64:321 case reflect.Uint32, reflect.Uint64:[all …]
80 val := reflect.ValueOf(value)127 func isAllArray(typ reflect.Type) bool {129 case reflect.String:131 case reflect.Slice:133 case reflect.Array:258 func decodeTensor(raw []byte, shape []int64, dt DataType) reflect.Value {264 slice reflect.Value265 typ reflect.Type272 slice = reflect.ValueOf(strs)277 typ = reflect.SliceOf(typ)[all …]
48 import java.lang.reflect.Constructor;49 import java.lang.reflect.Modifier;107 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(109 new Predicate<java.lang.reflect.Field>() {110 … @Override public boolean apply(@Nullable java.lang.reflect.Field input) {116 new Function<java.lang.reflect.Field, Field>() {117 … @Nullable @Override public Field apply(@Nullable java.lang.reflect.Field input) {129 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(131 new Predicate<java.lang.reflect.Field>() {132 … @Override public boolean apply(@Nullable java.lang.reflect.Field input) {[all …]
127 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()135 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()136 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()139 …fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeDo… in descriptor_static()144 crate::reflect::MessageDescriptor::new_pb_name::<DoubleValue>( in descriptor_static()171 impl crate::reflect::ProtobufValue for DoubleValue {172 fn as_ref(&self) -> crate::reflect::ReflectValueRef { in as_ref()173 crate::reflect::ReflectValueRef::Message(self) in as_ref()282 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()290 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()[all …]
331 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()339 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()340 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()343 …fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeSt… in descriptor_static()348 …fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufType… in descriptor_static()353 …fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufType… in descriptor_static()358 …fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufType… in descriptor_static()363 …fields.push(crate::reflect::accessor::make_singular_ptr_field_accessor::<_, crate::types::Protobuf… in descriptor_static()368 …fields.push(crate::reflect::accessor::make_simple_field_accessor::<_, crate::types::ProtobufTypeEn… in descriptor_static()373 crate::reflect::MessageDescriptor::new_pb_name::<Type>( in descriptor_static()[all …]
1 ; RUN: opt < %s -S -nvvm-reflect -nvvm-reflect-list USE_MUL=0 -O2 | FileCheck %s --check-prefix=USE…2 ; RUN: opt < %s -S -nvvm-reflect -nvvm-reflect-list USE_MUL=1 -O2 | FileCheck %s --check-prefix=USE…15 %reflect = tail call i32 @__nvvm_reflect(i8* %ptr)16 %cmp = icmp ugt i32 %reflect, 036 declare i32 @llvm.nvvm.reflect.p0i8(i8*)41 ; USE_MUL_0-NOT: call i32 @llvm.nvvm.reflect43 ; USE_MUL_1-NOT: call i32 @llvm.nvvm.reflect46 %reflect = tail call i32 @llvm.nvvm.reflect.p0i8(i8* %ptr)47 ret i32 %reflect60 …%reflect = call i32 @__nvvm_reflect(i8* addrspacecast (i8 addrspace(1)* getelementptr inbounds ([8…[all …]
1 ; We run nvvm-reflect (and then optimize) this module twice, once with metadata5 ; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 0}' >> %t.noftz6 ; RUN: opt %t.noftz -S -nvvm-reflect -O2 \10 ; RUN: echo '!0 = !{i32 4, !"nvvm-reflect-ftz", i32 1}' >> %t.ftz11 ; RUN: opt %t.ftz -S -nvvm-reflect -O2 \23 %reflect = tail call i32 @__nvvm_reflect(i8* %ptr)24 %cmp = icmp ugt i32 %reflect, 044 declare i32 @llvm.nvvm.reflect.p0i8(i8*)48 ; CHECK-NOT: call i32 @llvm.nvvm.reflect52 %reflect = tail call i32 @llvm.nvvm.reflect.p0i8(i8* %ptr)[all …]
243 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()251 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()252 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()255 … fields.push(crate::reflect::accessor::make_option_accessor::<_, crate::types::ProtobufTypeInt32>( in descriptor_static()260 … fields.push(crate::reflect::accessor::make_option_accessor::<_, crate::types::ProtobufTypeInt32>( in descriptor_static()265 … fields.push(crate::reflect::accessor::make_option_accessor::<_, crate::types::ProtobufTypeInt32>( in descriptor_static()270 …fields.push(crate::reflect::accessor::make_singular_field_accessor::<_, crate::types::ProtobufType… in descriptor_static()275 crate::reflect::MessageDescriptor::new_pb_name::<Version>( in descriptor_static()305 impl crate::reflect::ProtobufValue for Version {306 fn as_ref(&self) -> crate::reflect::ReflectValueRef { in as_ref()[all …]
141 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()149 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()150 … static descriptor: crate::rt::LazyV2<crate::reflect::MessageDescriptor> = crate::rt::LazyV2::INIT; in descriptor_static()153 …fields.push(crate::reflect::accessor::make_repeated_field_accessor::<_, crate::types::ProtobufType… in descriptor_static()158 crate::reflect::MessageDescriptor::new_pb_name::<FileDescriptorSet>( in descriptor_static()185 impl crate::reflect::ProtobufValue for FileDescriptorSet {186 fn as_ref(&self) -> crate::reflect::ReflectValueRef { in as_ref()187 crate::reflect::ReflectValueRef::Message(self) in as_ref()784 fn descriptor(&self) -> &'static crate::reflect::MessageDescriptor { in descriptor()792 fn descriptor_static() -> &'static crate::reflect::MessageDescriptor { in descriptor_static()[all …]