Home
last modified time | relevance | path

Searched refs:TextFormatParseLocation (Results 1 – 8 of 8) sorted by relevance

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTextFormatParseLocationTest.java41 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 …]
DTextFormatParseInfoTreeTest.java58 private static final TextFormatParseLocation LOC0 = TextFormatParseLocation.create(1, 2);
59 private static final TextFormatParseLocation LOC1 = TextFormatParseLocation.create(2, 3);
DTextFormatTest.java1115 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()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormatParseInfoTree.java56 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 …]
DTextFormatParseLocation.java40 public final class TextFormatParseLocation { class
45 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 TextFormatParseLocation
91 if (!(o instanceof TextFormatParseLocation)) { in equals()
94 TextFormatParseLocation that = (TextFormatParseLocation) o; in equals()
DTextFormat.java1527 field, TextFormatParseLocation.create(startLine, startColumn)); in mergeField()
/external/protobuf/
DMakefile.am254 java/core/src/main/java/com/google/protobuf/TextFormatParseLocation.java \
/external/error_prone/error_prone/
Derror_prone_core-2.3.2-with-dependencies.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ META- ...