Skip to content

Commit dc4fb17

Browse files
committed
don't re-export the default getSourceLocation
1 parent e9bd6ee commit dc4fb17

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/PythonAbstractObject.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,16 +1829,4 @@ public boolean hasMetaObject() {
18291829
public Object getMetaObject(@Shared("getClassThis") @Cached GetClassNode getClass) {
18301830
return getClass.execute(this);
18311831
}
1832-
1833-
@ExportMessage
1834-
@SuppressWarnings("static-method")
1835-
public SourceSection getSourceLocation() {
1836-
return null;
1837-
}
1838-
1839-
@ExportMessage
1840-
@SuppressWarnings("static-method")
1841-
public boolean hasSourceLocation() {
1842-
return false;
1843-
}
18441832
}

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/code/PCode.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@ public RootCallTarget getRootCallTarget() {
445445
return callTarget;
446446
}
447447

448-
@Override
449448
@ExportMessage
450449
public SourceSection getSourceLocation() {
451450
RootNode rootNode = getRootNode();
@@ -461,7 +460,6 @@ private static SourceSection getForeignSourceSection(RootNode rootNode) {
461460
return rootNode.getSourceSection();
462461
}
463462

464-
@Override
465463
@ExportMessage
466464
public boolean hasSourceLocation() {
467465
return true;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function/PFunction.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ public boolean isCallable() {
205205
return true;
206206
}
207207

208-
@Override
209208
@ExportMessage
210209
public SourceSection getSourceLocation() {
211210
RootNode rootNode = getCallTarget().getRootNode();
@@ -221,7 +220,6 @@ private static SourceSection getForeignSourceSection(RootNode rootNode) {
221220
return rootNode.getSourceSection();
222221
}
223222

224-
@Override
225223
@ExportMessage
226224
public boolean hasSourceLocation() {
227225
return true;

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/list/PList.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,12 @@ public static PList expect(Object value) throws UnexpectedResultException {
135135
throw new UnexpectedResultException(value);
136136
}
137137

138-
@Override
139138
@ExportMessage
140139
public SourceSection getSourceLocation() {
141140
ListLiteralNode node = getOrigin();
142141
return node != null ? node.getSourceSection() : null;
143142
}
144143

145-
@Override
146144
@ExportMessage
147145
public boolean hasSourceLocation() {
148146
return getOrigin() != null && getOrigin().getSourceSection() != null;

0 commit comments

Comments
 (0)