-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
5 changed files
with
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--sort=no | ||
--extras=+r | ||
--fields=+r | ||
--roles-Python.{unknown}=+{ref} |
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,22 @@ | ||
a.b input.py /^import a.b$/;" i roles:imported | ||
object input.py /^class X(object):$/;" x roles:ref | ||
X input.py /^class X(object):$/;" c roles:def | ||
self input.py /^ def __init__(self, n):$/;" x roles:ref | ||
n input.py /^ def __init__(self, n):$/;" x roles:ref | ||
__init__ input.py /^ def __init__(self, n):$/;" m class:X roles:def | ||
self input.py /^ self.n = n$/;" x roles:ref | ||
n input.py /^ self.n = n$/;" x roles:ref | ||
n input.py /^ self.n = n$/;" x roles:ref | ||
self input.py /^ def val(self):$/;" x roles:ref | ||
val input.py /^ def val(self):$/;" m class:X roles:def | ||
self input.py /^ return self.n$/;" x roles:ref | ||
n input.py /^ return self.n$/;" x roles:ref | ||
one input.py /^def one():$/;" f roles:def | ||
X input.py /^ return X(1)$/;" x roles:ref | ||
two input.py /^def two():$/;" f roles:def | ||
X input.py /^ return X(2)$/;" x roles:ref | ||
print input.py /^print (one().val() + two().val())$/;" x roles:ref | ||
one input.py /^print (one().val() + two().val())$/;" x roles:ref | ||
val input.py /^print (one().val() + two().val())$/;" x roles:ref | ||
two input.py /^print (one().val() + two().val())$/;" x roles:ref | ||
val input.py /^print (one().val() + two().val())$/;" x roles:ref |
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,18 @@ | ||
import a.b | ||
|
||
class X(object): | ||
def __init__(self, n): | ||
self.n = n | ||
|
||
def val(self): | ||
return self.n | ||
|
||
def one(): | ||
return X(1) | ||
|
||
def two(): | ||
return X(2) | ||
|
||
print (one().val() + two().val()) | ||
|
||
|
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