-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial support for resolving wildcard imports (#169)
Fixes #65 for both libraries and (internal) "scripts."
- Loading branch information
Showing
15 changed files
with
459 additions
and
5 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 @@ | ||
from multi2 import silly, x | ||
|
||
print(silly(1)) | ||
print(x) |
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 @@ | ||
from multi2 import x, silly | ||
|
||
print(silly(1)) | ||
print(x) |
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 @@ | ||
from multi2 import * | ||
|
||
print(silly(1)) | ||
print(x) |
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,10 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import ones, Tensor | ||
|
||
|
||
def f(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
f(ones([1, 2])) |
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,10 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import * | ||
|
||
|
||
def f(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
f(ones([1, 2])) |
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,15 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import ones, Tensor | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
assert isinstance(a, Tensor) | ||
g(ones([1, 2])) | ||
|
||
|
||
f(ones([1, 2])) |
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,15 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import * | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
assert isinstance(a, Tensor) | ||
g(ones([1, 2])) | ||
|
||
|
||
f(ones([1, 2])) |
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,14 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import ones, Tensor | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
g(ones([1, 2])) | ||
|
||
|
||
f(5) |
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,14 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import * | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
g(ones([1, 2])) | ||
|
||
|
||
f(5) |
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,13 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
# This is an invalid case. No wildcard import; we shouldn't present that there is one. | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
g(ones([1, 2])) | ||
|
||
|
||
f(5) |
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,15 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
# This is an invalid case. No wildcard import; we shouldn't present that there is one. | ||
|
||
from tensorflow import Tensor | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
g(ones([1, 2])) | ||
|
||
|
||
f(5) |
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,15 @@ | ||
# Test https://github.com/wala/ML/issues/65. | ||
|
||
from tensorflow import * | ||
|
||
|
||
def g(a): | ||
assert isinstance(a, Tensor) | ||
|
||
|
||
def f(a): | ||
assert isinstance(a, Tensor) | ||
g(a) | ||
|
||
|
||
f(ones([1, 2])) |
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
Oops, something went wrong.