-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: expression type cast source positions (#2113)
- Loading branch information
1 parent
661b01a
commit 45c7017
Showing
6 changed files
with
159 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/test/java/spoon/test/position/testclasses/Expressions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package spoon.test.position.testclasses; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class Expressions { | ||
void method() { | ||
System.out.print("x"); | ||
System.out.print(("x")); | ||
System.out.print((String)null); | ||
System.out.print(( String) ( (Serializable)(( (null ))))); | ||
System.out.print((((String) null))); | ||
System.out.print(/*c1*/ ( /*c2*/ | ||
( | ||
/*c3*/ String | ||
/*c4*/) //c5 | ||
null /*c6*/ | ||
//c7 | ||
) /*c8*/ ); | ||
System.out.print((List<?>) null); | ||
System.out.print((List<List<Map<String,Integer>>>) null); | ||
}; | ||
} |