/third_party/python/Lib/distutils/command/ |
H A D | build_scripts.py | 107 shebang = b"#!" + executable + post_interp + b"\n" 109 # it gets a #coding:xxx cookie. The shebang has to be the 111 # written before. So the shebang has to be decodable from 114 shebang.decode('utf-8') 117 "The shebang ({!r}) is not decodable " 118 "from utf-8".format(shebang)) 120 # #coding:xxx cookie), the shebang has to be decodable from 123 shebang.decode(encoding) 126 "The shebang ({!r}) is not decodable " 128 .format(shebang, encodin [all...] |
/third_party/rust/crates/proc-macro-error/proc-macro-error-attr/src/ |
H A D | parse.rs | 30 let shebang = match input.peek() { in parse_next_attr() 53 shebang, in parse_next_attr() 73 pub(crate) shebang: TokenTree, 86 self.shebang.to_tokens(ts); in to_tokens()
|
/third_party/node/deps/npm/node_modules/cross-spawn/lib/ |
H A D | parse.js | 15 const shebang = parsed.file && readShebang(parsed.file); 17 if (shebang) { 19 parsed.command = shebang;
|
/third_party/rust/crates/syn/src/ |
H A D | file.rs | 51 /// shebang: None, 82 pub shebang: Option<String>, 97 shebang: None, in parse()
|
H A D | lib.rs | 957 /// - It preserves the shebang line of the file, such as `#!/usr/bin/env rustx`. 974 /// if let Some(shebang) = ast.shebang { 975 /// println!("{}", shebang); 993 let mut shebang = None; in parse_file() variables 998 shebang = Some(content[..idx].to_string()); in parse_file() 1001 shebang = Some(content.to_string()); in parse_file() 1008 file.shebang = shebang; in parse_file()
|
/third_party/python/Lib/test/test_tools/ |
H A D | test_pathfix.py | 20 def pathfix(self, shebang, pathfix_flags, exitcode=0, stdout='', stderr='', 32 f.write(f'{shebang}\n' + 'print("Hello world")\n') 55 self.assertEqual(shebang, new_shebang)
|
/third_party/python/Lib/ |
H A D | zipapp.py | 24 # The Windows launcher defaults to UTF-8 when parsing shebang lines if the 47 """Write a shebang line.""" 49 shebang = b'#!' + interpreter.encode(shebang_encoding) + b'\n' 50 f.write(shebang) 54 """Copy an application archive, modifying the shebang line.""" 56 # Skip the shebang line from the source. 60 # Discard the initial 2 bytes and the rest of the shebang line. 66 # If there was no shebang, "first_2" contains the first 2 bytes 88 The created application archive will have a shebang line specifying 89 that it should run with INTERPRETER (there will be no shebang lin [all...] |
/third_party/python/PC/ |
H A D | launcher2.c | 390 // shebang line, if any. Length can be -1 if the string is null 418 // the environment, rather than the command line or a shebang line, and the 714 debug(L"# Failed to decode shebang line (0x%08X)\n", GetLastError()); in _decodeShebang() 724 debug(L"# Failed to decode shebang line (0x%08X)\n", GetLastError()); in _decodeShebang() 756 searchPath(SearchInfo *search, const wchar_t *shebang, int shebangLength) in searchPath() argument 764 if (!_shebangStartsWith(shebang, shebangLength, L"/usr/bin/env ", &command, &commandLength)) { in searchPath() 817 // If we are, pretend there was no shebang and let normal handling take over in searchPath() 820 debug(L"# ignoring recursive shebang command\n"); in searchPath() 895 _useShebangAsExecutable(SearchInfo *search, const wchar_t *shebang, int shebangLength) in _useShebangAsExecutable() argument 904 if (!shebang || !shebangLengt in _useShebangAsExecutable() 1019 wchar_t *shebang; checkShebang() local [all...] |
H A D | launcher.c | 656 * If we're looking for an interpreter specified in a shebang line, in locate_python() 863 wchar_t *shebang; member 1067 for (vpp = builtin_virtual_paths; vpp->shebang; ++vpp) { in parse_shebang() 1068 plen = wcslen(vpp->shebang); in parse_shebang() 1069 if (wcsncmp(shebang_line, vpp->shebang, plen) == 0) { in parse_shebang() 1079 if (vpp->shebang == NULL) { in parse_shebang() 1083 * We can't permanently modify the shebang line in case in parse_shebang() 1297 * Look for a shebang line in the first argument. If found in maybe_handle_shebang() 1301 * argv[0] might be a filename with a shebang. in maybe_handle_shebang() 1350 * we assume it's not a shebang fil in maybe_handle_shebang() [all...] |
/third_party/rust/crates/syn/src/gen/ |
H A D | clone.rs | 839 shebang: self.shebang.clone(), in clone()
|
H A D | eq.rs | 805 self.shebang == other.shebang && self.attrs == other.attrs in eq()
|
H A D | visit.rs | 2044 skip!(node.shebang); in visit_file()
|
H A D | hash.rs | 1082 self.shebang.hash(state); in hash()
|
H A D | fold.rs | 1845 shebang: node.shebang, in fold_file()
|
H A D | debug.rs | 1211 formatter.field("shebang", &self.shebang); in fmt()
|
H A D | visit_mut.rs | 2045 skip!(node.shebang); in visit_file_mut()
|
/third_party/rust/crates/syn/tests/debug/ |
H A D | gen.rs | 1820 if let Some(val) = &self.value.shebang { in fmt() 1832 formatter.field("shebang", Print::ref_cast(val)); in fmt()
|
/third_party/node/test/fixtures/snapshot/ |
H A D | typescript.js | 10614 var shebang = shebangTriviaRegex.exec(text)[0]; 10615 pos = pos + shebang.length; 10649 var shebang = getShebang(text); 10650 if (shebang) { 10651 pos = shebang.length; 10767 /** Optionally, get the shebang */ 11431 // Special handling for shebang [all...] |
/third_party/typescript/lib/ |
H A D | tsserverlibrary.js | 10766 var shebang = shebangTriviaRegex.exec(text)[0]; 10767 pos = pos + shebang.length; 10801 var shebang = getShebang(text); 10802 if (shebang) { 10803 pos = shebang.length; 10919 /** Optionally, get the shebang */ 11592 // Special handling for shebang [all...] |
H A D | typescript.js | 10757 var shebang = shebangTriviaRegex.exec(text)[0]; 10758 pos = pos + shebang.length; 10792 var shebang = getShebang(text); 10793 if (shebang) { 10794 pos = shebang.length; 10910 /** Optionally, get the shebang */ 11583 // Special handling for shebang [all...] |
H A D | typescriptServices.js | 10757 var shebang = shebangTriviaRegex.exec(text)[0]; 10758 pos = pos + shebang.length; 10792 var shebang = getShebang(text); 10793 if (shebang) { 10794 pos = shebang.length; 10910 /** Optionally, get the shebang */ 11583 // Special handling for shebang [all...] |
H A D | tsserver.js | 10767 var shebang = shebangTriviaRegex.exec(text)[0]; 10768 pos = pos + shebang.length; 10802 var shebang = getShebang(text); 10803 if (shebang) { 10804 pos = shebang.length; 10920 /** Optionally, get the shebang */ 11593 // Special handling for shebang [all...] |
H A D | typingsInstaller.js | 10747 var shebang = shebangTriviaRegex.exec(text)[0]; 10748 pos = pos + shebang.length; 10782 var shebang = getShebang(text); 10783 if (shebang) { 10784 pos = shebang.length; 10900 /** Optionally, get the shebang */ 11573 // Special handling for shebang [all...] |
H A D | tsc.js | 7772 var shebang = shebangTriviaRegex.exec(text)[0]; 7773 pos = pos + shebang.length; 7787 var shebang = getShebang(text); 7788 if (shebang) { 7789 pos = shebang.length; [all...] |