< prev index next >
src/jdk.jextract/share/classes/com/sun/tools/jextract/AsmCodeFactory.java
Print this page
*** 159,169 ****
if (! noNativeLocations) {
AnnotationVisitor av = cw.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = tree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "builtin" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
}
--- 159,169 ----
if (! noNativeLocations) {
AnnotationVisitor av = cw.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = tree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "<builtin>" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
}
*** 197,207 ****
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = tree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "builtin" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
--- 197,207 ----
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = tree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "<builtin>" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
*** 247,257 ****
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "builtin" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
--- 247,257 ----
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "<builtin>" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
*** 442,452 ****
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = funcTree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "builtin" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
--- 442,452 ----
if (! noNativeLocations) {
AnnotationVisitor av = mv.visitAnnotation(NATIVE_LOCATION, true);
SourceLocation src = funcTree.location();
SourceLocation.Location loc = src.getFileLocation();
Path p = loc.path();
! av.visit("file", p == null ? "<builtin>" : p.toAbsolutePath().toString());
av.visit("line", loc.line());
av.visit("column", loc.column());
av.visitEnd();
}
< prev index next >