Searched refs:TextFormatParseLocation (Results 1 – 8 of 8) sorted by relevance
41 TextFormatParseLocation location = TextFormatParseLocation.create(-1, -1); in testCreateEmpty()42 assertEquals(TextFormatParseLocation.EMPTY, location); in testCreateEmpty()46 TextFormatParseLocation location = TextFormatParseLocation.create(2, 1); in testCreate()53 TextFormatParseLocation.create(-1, 0); in testCreateThrowsIllegalArgumentExceptionForInvalidIndex()59 TextFormatParseLocation.create(0, -1); in testCreateThrowsIllegalArgumentExceptionForInvalidIndex()67 TextFormatParseLocation loc0 = TextFormatParseLocation.create(2, 1); in testHashCode()68 TextFormatParseLocation loc1 = TextFormatParseLocation.create(2, 1); in testHashCode()72 TextFormatParseLocation.EMPTY.hashCode(), TextFormatParseLocation.EMPTY.hashCode()); in testHashCode()76 TextFormatParseLocation loc0 = TextFormatParseLocation.create(2, 1); in testEquals()77 TextFormatParseLocation loc1 = TextFormatParseLocation.create(1, 2); in testEquals()[all …]
58 private static final TextFormatParseLocation LOC0 = TextFormatParseLocation.create(1, 2);59 private static final TextFormatParseLocation LOC1 = TextFormatParseLocation.create(2, 3);
1115 List<TextFormatParseLocation> locs = tree.getLocations(descriptor.findFieldByName(fieldName)); in assertLocation()1117 TextFormatParseLocation location = locs.get(index); in assertLocation()1118 TextFormatParseLocation expected = TextFormatParseLocation.create(line, column); in assertLocation()
56 private Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField;69 Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField, in TextFormatParseInfoTree()73 Map<FieldDescriptor, List<TextFormatParseLocation>> locs = in TextFormatParseInfoTree()74 new HashMap<FieldDescriptor, List<TextFormatParseLocation>>(); in TextFormatParseInfoTree()75 for (Entry<FieldDescriptor, List<TextFormatParseLocation>> kv : locationsFromField.entrySet()) { in TextFormatParseInfoTree()99 public List<TextFormatParseLocation> getLocations(final FieldDescriptor fieldDescriptor) { in getLocations()100 List<TextFormatParseLocation> result = locationsFromField.get(fieldDescriptor); in getLocations()101 return (result == null) ? Collections.<TextFormatParseLocation>emptyList() : result; in getLocations()115 public TextFormatParseLocation getLocation(final FieldDescriptor fieldDescriptor, int index) { in getLocation()165 private Map<FieldDescriptor, List<TextFormatParseLocation>> locationsFromField;[all …]
40 public final class TextFormatParseLocation { class45 public static final TextFormatParseLocation EMPTY = new TextFormatParseLocation(-1, -1);54 static TextFormatParseLocation create(int line, int column) { in create()62 return new TextFormatParseLocation(line, column); in create()68 private TextFormatParseLocation(int line, int column) { in TextFormatParseLocation() method in TextFormatParseLocation91 if (!(o instanceof TextFormatParseLocation)) { in equals()94 TextFormatParseLocation that = (TextFormatParseLocation) o; in equals()
1527 field, TextFormatParseLocation.create(startLine, startColumn)); in mergeField()
254 java/core/src/main/java/com/google/protobuf/TextFormatParseLocation.java \
META-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...