Lines Matching refs:fieldInfo
457 var fieldInfo = extensions[fieldNumber];
458 var value = getExtensionFn.call(proto, fieldInfo);
460 for (var name in fieldInfo.fieldName) {
461 if (fieldInfo.fieldName.hasOwnProperty(name)) {
465 if (!fieldInfo.toObjectFn) {
468 if (fieldInfo.isRepeated) {
471 fieldInfo.toObjectFn, opt_includeInstance);
473 obj[name] = fieldInfo.toObjectFn(opt_includeInstance, value);
492 var fieldInfo = extensions[fieldNumber];
496 if (!fieldInfo.binaryWriterFn) {
500 var value = getExtensionFn.call(proto, fieldInfo);
502 if (fieldInfo.isMessageType()) {
509 if (fieldInfo.binaryMessageSerializeFn) {
510 fieldInfo.binaryWriterFn.call(writer, fieldInfo.fieldIndex,
511 value, fieldInfo.binaryMessageSerializeFn);
518 fieldInfo.binaryWriterFn.call(writer, fieldInfo.fieldIndex, value);
536 var fieldInfo = extensions[reader.getFieldNumber()];
537 if (!fieldInfo) {
541 if (!fieldInfo.binaryReaderFn) {
547 if (fieldInfo.isMessageType()) {
548 value = new fieldInfo.ctor();
549 fieldInfo.binaryReaderFn.call(
550 reader, value, fieldInfo.binaryMessageDeserializeFn);
553 value = fieldInfo.binaryReaderFn.call(reader);
556 if (fieldInfo.isRepeated && !fieldInfo.isPacked) {
557 var currentList = getExtensionFn.call(msg, fieldInfo);
559 setExtensionFn.call(msg, fieldInfo, [value]);
564 setExtensionFn.call(msg, fieldInfo, value);
985 jspb.Message.prototype.getExtension = function(fieldInfo) { argument
992 var fieldNumber = fieldInfo.fieldIndex;
993 if (fieldInfo.isRepeated) {
994 if (fieldInfo.isMessageType()) {
999 return new fieldInfo.ctor(arr);
1007 if (fieldInfo.isMessageType()) {
1009 this.wrappers_[fieldNumber] = new fieldInfo.ctor(
1027 jspb.Message.prototype.setExtension = function(fieldInfo, value) { argument
1032 var fieldNumber = fieldInfo.fieldIndex;
1033 if (fieldInfo.isRepeated) {
1035 if (fieldInfo.isMessageType()) {
1045 if (fieldInfo.isMessageType()) {