/dports/devel/pylint/pylint-2.12.1/pylint/extensions/ |
H A D | confusing_elif.py | 41 self.add_message("confusing-consecutive-elif", node=node.orelse[0]) 45 orelse = node.orelse 46 while orelse and isinstance(orelse[0], nodes.If): 47 orelse = orelse[0].orelse 48 if not orelse or isinstance(orelse[0], nodes.If):
|
/dports/cad/py-pymtl/pymtl3-3.1.6/pymtl3/passes/backends/verilog/translation/behavioral/ |
H A D | VBehavioralTranslatorL2.py | 85 orelse = [] 92 for stmt in node.orelse: 93 orelse.extend( s.visit( stmt ) ) 104 if node.orelse != []: 107 if len( node.orelse ) == 1 and isinstance( node.orelse[ 0 ], bir.If ): 110 orelse = orelse[ 1 : ] 115 make_indent( orelse, 1 ) 118 src.extend( orelse ) 119 if len( node.orelse ) > 1: 179 node.orelse._top_expr = True [all …]
|
/dports/devel/py-google-pasta/google-pasta-0.1.7/pasta/base/ |
H A D | ast_utils.py | 116 if (len(node.orelse) == 1 and isinstance(node.orelse[0], ast.If) and 117 fmt.get(node.orelse[0], 'is_elif')): 118 return get_last_child(node.orelse[0]) 119 if node.orelse: 120 return node.orelse[-1] 128 if node.orelse: 129 return node.orelse[-1] 134 if node.orelse: 135 return node.orelse[-1]
|
/dports/devel/eric6/eric6-21.11/eric/eric6/Plugins/CheckerPlugins/CodeStyleChecker/Simplify/ |
H A D | SimplifyNodeVisitor.py | 296 orelse = node.orelse 299 len(orelse) == 1 and 302 pairs.append((orelse[0].test, orelse[0].body)) 303 orelse = orelse[0].orelse 458 node.orelse == [] and 492 len(node.orelse) != 1 or 519 node.orelse != [] 540 node.orelse != [] 656 orelse = unparse(node.orelse[0].value) 918 child = node.orelse[0] [all …]
|
/dports/devel/py-libcst/libcst-0.3.23/libcst/_nodes/tests/ |
H A D | test_if.py | 32 orelse=cst.Else(cst.SimpleStatementSuite((cst.Pass(),))), 43 orelse=cst.If( 46 orelse=cst.Else(cst.SimpleStatementSuite((cst.Pass(),))), 60 orelse=cst.Else(cst.SimpleStatementSuite((cst.Pass(),))), 100 orelse=cst.Else( 114 orelse=cst.If( 118 orelse=cst.Else(
|
H A D | test_ifexp.py | 21 body=cst.Name("foo"), test=cst.Name("bar"), orelse=cst.Name("baz") 31 orelse=cst.Name("baz"), 48 orelse=cst.Name( 65 orelse=cst.Name("baz"),
|
/dports/devel/py-pythran/pythran-0.11.0/pythran/transformations/ |
H A D | normalize_ifelse.py | 59 return node.orelse and self.check_lasts(node.orelse[-1]) 72 if not node.orelse: 73 node.orelse = [] 74 node.orelse.extend(body[index + 1:])
|
H A D | normalize_static_if.py | 198 node.orelse, False, False, False) 241 assigned_ids_right = self.escaping_ids(node, node.orelse) 257 felse = self.make_fake(node.orelse) 271 node.orelse, has_return, has_break, has_cont) 412 test_after.orelse = deepcopy(node.orelse) 419 test_static.orelse = deepcopy(node.orelse) 426 test_before.orelse = node.orelse 434 test_after.orelse = deepcopy(node.orelse) 437 test_after = deepcopy(node.orelse) 441 test_static.orelse = test_after [all …]
|
H A D | normalize_exception.py | 31 if node.orelse: 34 node.orelse, 39 node.orelse = []
|
/dports/lang/lfe/lfe-1.3/test/ |
H A D | andor_SUITE.lfe | 61 ;; generated by andalso/orelse. 221 (line (test-pat 'true (orelse 'true 'true))) 222 (line (test-pat 'true (orelse 'true 'false))) 223 (line (test-pat 'true (orelse 'false 'true))) 231 (line (test-pat 'true (orelse 'true 'glurf))) 249 (defun t-orelse-1 252 (let* ((v0 (orelse (echo x) (echo y))) 330 (orelse (andalso (=< pos2 pos1) 346 `(orelse (andalso ,a ,b) ,c)) 384 (let* ((r0 (orelse (andalso a b) c)) [all …]
|
/dports/lang/mosml/mosml-ver-2.10.1/src/mosmllib/ |
H A D | Char.sml | 16 fun chr i = if i<0 orelse i>maxOrd then raise Chr else chr_ i; 56 fun isAlpha c = isLower c orelse isUpper c 58 orelse #"a" <= c andalso c <= #"f" 59 orelse #"A" <= c andalso c <= #"F" 60 fun isAlphaNum c = isAlpha c orelse isDigit c 63 fun isSpace c = c = #" " orelse #"\009" <= c andalso c <= #"\013" 67 (* fun isCntrl c = c < #" " orelse c = #"\127" orelse c = #"\255" *) 68 fun isCntrl c = c < #" " orelse c >= #"\127"
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/logilab/logilab/astroid/ |
H A D | mixins.py | 34 def _elsed_block_range(self, lineno, orelse, last=None): argument 40 if orelse: 41 if lineno >= orelse[0].fromlineno: 42 return lineno, orelse[-1].tolineno 43 return lineno, orelse[0].fromlineno - 1
|
/dports/devel/py-astroid/astroid-2.9.0/astroid/ |
H A D | mixins.py | 31 def _elsed_block_range(self, lineno, orelse, last=None): argument 37 if orelse: 38 if lineno >= orelse[0].fromlineno: 39 return lineno, orelse[-1].tolineno 40 return lineno, orelse[0].fromlineno - 1
|
/dports/devel/elixir-cachex/cachex-3.0.3/test/cachex/ |
H A D | query_test.exs | 18 { :orelse, 35 { :orelse, 60 { :orelse, 76 { :orelse, 99 { :orelse, 113 { :orelse,
|
/dports/cad/py-pymtl/pymtl3-3.1.6/pymtl3/passes/rtlir/behavioral/ |
H A D | BehavioralRTLIRGenL2Pass.py | 108 orelse = [] 109 for orelse_stmt in node.orelse: 110 orelse.append( s.visit( orelse_stmt ) ) 111 ret = bir.If( cond, body, orelse ) 117 if node.orelse != []: 216 orelse = s.visit( node.orelse ) 217 ret = bir.IfExp( cond, body, orelse )
|
H A D | BehavioralRTLIR.py | 58 def __init__( s, cond, body, orelse ): argument 61 s.orelse = orelse 69 for x, y in zip( s.orelse, other.orelse ): 163 def __init__( s, cond, body, orelse ): argument 166 s.orelse = orelse 169 …stance(other, IfExp) and s.cond == other.cond and s.body == other.body and s.orelse == other.orelse
|
/dports/lang/polyml/polyml-5.8.2/Tests/Succeed/ |
H A D | Test004.ML | 7 verify(Word.wordSize <> 31 orelse Word.fromLargeInt 10000000000 = 0wx540BE400); 8 verify(Word.wordSize <> 31 orelse Word.fromLargeInt ~10000000000 = 0wx2BF41C00); 10 verify(Word.wordSize <> 31 orelse Word.fromInt ~1 = 0wx7FFFFFFF);
|
/dports/lang/mosml/mosml-ver-2.10.1/src/compiler/ |
H A D | Filename.mlp | 33 (len >= 1 andalso extract(n, 0, SOME 1) = "/") orelse 34 (len >= 2 andalso extract(n, 0, SOME 2) = "./") orelse 80 if l < 0 orelse extract(dirname1, l, SOME 1) = ":" 130 (len >= 2 andalso extract(n, 1, SOME 1) = ":") orelse 131 (len >= 1 andalso extract(n, 0, SOME 1) = "\\") orelse 132 (len >= 2 andalso extract(n, 0, SOME 2) = ".\\") orelse 159 else if name = "/" orelse name = "\\" then
|
/dports/lang/mosml/mosml-ver-2.10.1/src/compiler.cminusminus/ |
H A D | Filename.mlp | 33 (len >= 1 andalso extract(n, 0, SOME 1) = "/") orelse 34 (len >= 2 andalso extract(n, 0, SOME 2) = "./") orelse 80 if l < 0 orelse extract(dirname1, l, SOME 1) = ":" 130 (len >= 2 andalso extract(n, 1, SOME 1) = ":") orelse 131 (len >= 1 andalso extract(n, 0, SOME 1) = "\\") orelse 132 (len >= 2 andalso extract(n, 0, SOME 2) = ".\\") orelse 159 else if name = "/" orelse name = "\\" then
|
/dports/lang/zig-devel/zig-0.9.0/test/behavior/ |
H A D | null.zig | 19 const z = next_x orelse 1234; 25 const num = final_x orelse unreachable; 42 const y = x orelse return; 58 const value = x orelse return null; 109 const x: i32 = null orelse 1;
|
/dports/lang/zig/zig-0.9.0/test/behavior/ |
H A D | null.zig | 19 const z = next_x orelse 1234; 25 const num = final_x orelse unreachable; 42 const y = x orelse return; 58 const value = x orelse return null; 109 const x: i32 = null orelse 1;
|
/dports/devel/py-libcst/libcst-0.3.23/libcst/_nodes/ |
H A D | statement.py | 595 orelse=visit_optional(self, "orelse", self.orelse, visitor), 603 end_node = self.body if self.orelse is None else self.orelse 611 orelse = self.orelse 922 orelse=visit_optional(self, "orelse", self.orelse, visitor), 934 orelse = self.orelse 935 end_node = end_node if orelse is None else orelse 2003 orelse=visit_optional(self, "orelse", self.orelse, visitor), 2011 end_node = self.body if self.orelse is None else self.orelse 2026 orelse = self.orelse 2087 end_node = self.body if self.orelse is None else self.orelse [all …]
|
/dports/devel/py-pythran/pythran-0.11.0/pythran/analyses/ |
H A D | ancestors.py | 48 self.visit_body(node.orelse) 56 self.visit_body(node.orelse) 65 self.visit_body(node.orelse) 74 self.visit_body(node.orelse)
|
/dports/databases/py-sqlite3/Python-3.8.12/Parser/ |
H A D | Python.asdl | 34 -- use 'orelse' because else is a keyword in target languages 35 | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 36 | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 37 | While(expr test, stmt* body, stmt* orelse) 38 | If(expr test, stmt* body, stmt* orelse) 43 | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) 64 | IfExp(expr test, expr body, expr orelse)
|
/dports/databases/py-gdbm/Python-3.8.12/Parser/ |
H A D | Python.asdl | 34 -- use 'orelse' because else is a keyword in target languages 35 | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 36 | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) 37 | While(expr test, stmt* body, stmt* orelse) 38 | If(expr test, stmt* body, stmt* orelse) 43 | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) 64 | IfExp(expr test, expr body, expr orelse)
|