コード例 #1
0
ファイル: test_inline.py プロジェクト: willcrichton/ast_tools
 def nested(cond):
     if cond:
         if inline(cond_1):
             return 3
         else:
             return 2
     else:
         if inline(cond_1):
             return 1
         else:
             return 0
コード例 #2
0
ファイル: test_inline.py プロジェクト: willcrichton/ast_tools
 def nested():
     if inline(cond_0):
         if inline(cond_1):
             return 3
         else:
             return 2
     else:
         if inline(cond_1):
             return 1
         else:
             return 0
コード例 #3
0
ファイル: test_inline.py プロジェクト: willcrichton/ast_tools
 def basic():
     if inline(cond):
         return 0
     else:
         return 1
コード例 #4
0
ファイル: test_inline.py プロジェクト: leonardt/ast_tools
 def foo(x):
     if inline(y):
         return x + 1
     else:
         return x - 1