Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
rewrapper_dart.Rewrapper Class Reference

Public Member Functions

def __init__ (self, argv)
 
def has_next_arg (self)
 
def next_arg (self)
 
def get_option (self, options)
 
def unsupported (self, state, arg)
 
def rebase (self, path)
 
def parse (self)
 
def parse_rewrapper (self)
 
def parse_dart (self)
 
def parse_compile (self)
 
def parse_dart2js (self)
 
def parse_dartdevc (self)
 
def parse_dartanalyzer (self)
 
def parse_analysis_server (self)
 
def parse_compile_platform (self)
 
def parse_create_snapshot_entry (self)
 
def parse_kernel_worker (self)
 
def parse_gen_kernel (self)
 
def parse_bootstrap_gen_kernel (self)
 
def parse_kernel_service_snapshot (self)
 
def parse_frontend_server (self)
 
def parse_generate_dtd_snapshot (self)
 
def parse_generate_dds_snapshot (self)
 
def parse_kernel_worker (self)
 
def parse_generate_dartdev_snapshot (self)
 
def parse_gen_snapshot (self)
 

Public Attributes

 dart_subdir
 
 depfiles
 
 entry_points
 
 exec_root
 
 exec_strategy
 
 exec_strategy_explicit
 
 extra_paths
 
 outputs
 
 no_remote
 
 argv
 
 optarg
 
 optind
 

Detailed Description

Definition at line 167 of file rewrapper_dart.py.

Constructor & Destructor Documentation

◆ __init__()

def rewrapper_dart.Rewrapper.__init__ (   self,
  argv 
)

Definition at line 169 of file rewrapper_dart.py.

169 def __init__(self, argv):
170 self.dart_subdir = None
171 self.depfiles = None
172 self.entry_points = set()
173 self.exec_root = None
174 self.exec_strategy = 'remote'
175 self.exec_strategy_explicit = False
176 self.extra_paths = set()
177 self.outputs = []
178 self.no_remote = None
179 self.argv = argv
180 self.optarg = None
181 self.optind = 0
182 self.parse()
183
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Definition: switches.h:76

Member Function Documentation

◆ get_option()

def rewrapper_dart.Rewrapper.get_option (   self,
  options 
)

Definition at line 192 of file rewrapper_dart.py.

192 def get_option(self, options):
193 arg = self.argv[self.optind]
194 for option in options:
195 if arg == option:
196 self.optind += 1
197 self.optarg = self.argv[self.optind]
198 return True
199 elif option.startswith('--') and arg.startswith(f'{option}='):
200 self.optarg = arg[len(f'{option}='):]
201 return True
202 elif option[0] == '-' and option[1] != '-' and arg.startswith(
203 option):
204 self.optarg = arg[len(option):]
205 return True
206 return False
207

◆ has_next_arg()

def rewrapper_dart.Rewrapper.has_next_arg (   self)

Definition at line 185 of file rewrapper_dart.py.

185 def has_next_arg(self):
186 return self.optind + 1 < len(self.argv)
187

◆ next_arg()

def rewrapper_dart.Rewrapper.next_arg (   self)

Definition at line 188 of file rewrapper_dart.py.

188 def next_arg(self):
189 self.optind += 1
190 return self.argv[self.optind]
191

◆ parse()

def rewrapper_dart.Rewrapper.parse (   self)

Definition at line 237 of file rewrapper_dart.py.

237 def parse(self):
238 while self.has_next_arg:
239 arg = self.next_arg()
240 if arg == 'rewrapper' or arg.endswith('/rewrapper'):
241 return self.parse_rewrapper()
242 else:
243 self.unsupported('rewrapper_dart', arg)
244
def parse(repo_root, recipes_cfg_path)
Definition: recipes.py:56

◆ parse_analysis_server()

def rewrapper_dart.Rewrapper.parse_analysis_server (   self)

Definition at line 445 of file rewrapper_dart.py.

445 def parse_analysis_server(self):
446 while self.has_next_arg:
447 arg = self.next_arg()
448 if self.get_option(['--sdk']):
449 self.extra_paths.add(self.rebase(self.optarg))
450 elif self.get_option(['--train-using']):
451 self.extra_paths.add(self.rebase(self.optarg))
452 self.entry_points.add(
453 self.rebase(os.path.join(self.optarg, 'compiler_api.dart')))
454 # This file isn't referenced from compiler_api.dart.
455 self.entry_points.add(
456 self.rebase(
457 os.path.join(self.optarg, 'src/io/mapped_file.dart')))
458 else:
459 self.unsupported('analysis_server', arg)
460

◆ parse_bootstrap_gen_kernel()

def rewrapper_dart.Rewrapper.parse_bootstrap_gen_kernel (   self)

Definition at line 560 of file rewrapper_dart.py.

560 def parse_bootstrap_gen_kernel(self):
561 while self.has_next_arg:
562 arg = self.next_arg()
563 if self.get_option(['-o', '--output']):
564 self.outputs.append(self.rebase(self.optarg))
565 elif self.get_option(['--platform']):
566 self.extra_paths.add(self.rebase(self.optarg))
567 elif self.get_option(['--packages', '-D']):
568 pass
569 elif arg in [
570 '--aot',
571 '--no-aot',
572 '--no-embed-sources',
573 '--no-link-platform',
574 '--enable-asserts',
575 ]:
576 pass
577 elif self.get_option(['--depfile']):
578 self.depfiles = [self.rebase(self.optarg)]
579 elif not arg.startswith('-'):
580 self.entry_points.add(self.rebase(arg))
581 else:
582 self.unsupported('bootstrap_gen_kernel', arg)
583
static void append(char **dst, size_t *count, const char *src, size_t n)
Definition: editor.cpp:211

◆ parse_compile()

def rewrapper_dart.Rewrapper.parse_compile (   self)

Definition at line 366 of file rewrapper_dart.py.

366 def parse_compile(self):
367 while self.has_next_arg:
368 arg = self.next_arg()
369 if arg == 'js':
370 self.extra_paths.add(
371 self.rebase(
372 os.path.join(self.dart_subdir,
373 'snapshots/dart2js.dart.snapshot')))
374 return self.parse_dart2js()
375 else:
376 self.unsupported('compile', arg)
377

◆ parse_compile_platform()

def rewrapper_dart.Rewrapper.parse_compile_platform (   self)

Definition at line 461 of file rewrapper_dart.py.

461 def parse_compile_platform(self):
462 compile_platform_args = []
463 single_root_scheme = None
464 single_root_base = None
465 while self.has_next_arg:
466 arg = self.next_arg()
467 if self.get_option(['--single-root-scheme']):
468 single_root_scheme = self.optarg
469 elif self.get_option(['--single-root-base']):
470 single_root_base = self.optarg
471 # Remove trailing slash to avoid duplicate slashes later.
472 if 1 < len(single_root_base) and single_root_base[-1] == '/':
473 single_root_base = single_root_base[:-1]
474 elif self.get_option(['-D', '--target']):
475 pass
476 elif arg in [
477 '--no-defines',
478 '--nnbd-strong',
479 '--nnbd-weak',
480 '--exclude-source',
481 ]:
482 pass
483 elif not arg.startswith('-'):
484 if len(compile_platform_args) == 0:
485 pass # e.g. dart:core
486 elif len(compile_platform_args) == 1:
487 sdk = arg # sdk via libraries.json
488 if sdk.startswith(f'{single_root_scheme}:///'):
489 sdk = sdk[len(f'{single_root_scheme}:///'):]
490 sdk = os.path.join(single_root_base, sdk)
491 if sdk.endswith('libraries.json'):
492 sdk = os.path.dirname(sdk)
493 self.extra_paths.add(self.rebase(sdk))
494 elif len(compile_platform_args) == 2: # vm_outline_strong dill
495 arg = self.rebase(arg)
496 elif len(compile_platform_args) == 3: # platform dill
497 arg = self.rebase(arg)
498 self.outputs.append(arg)
499 elif len(compile_platform_args) == 4: # outline dill
500 arg = self.rebase(arg)
501 self.outputs.append(arg)
502 if arg != compile_platform_args[2]:
503 self.extra_paths.add(compile_platform_args[2])
504 else:
505 self.unsupported('compile_platform', arg)
506 compile_platform_args.append(arg)
507 else:
508 self.unsupported('compile_platform', arg)
509

◆ parse_create_snapshot_entry()

def rewrapper_dart.Rewrapper.parse_create_snapshot_entry (   self)

Definition at line 510 of file rewrapper_dart.py.

510 def parse_create_snapshot_entry(self):
511 while self.has_next_arg:
512 arg = self.next_arg()
513 if self.get_option(['--output_dir']):
514 self.outputs.append(self.rebase(self.optarg))
515 elif arg in ['--no-git-hash']:
516 pass
517 else:
518 self.unsupported('create_snapshot_entry', arg)
519

◆ parse_dart()

def rewrapper_dart.Rewrapper.parse_dart (   self)

Definition at line 278 of file rewrapper_dart.py.

278 def parse_dart(self):
279 while self.has_next_arg:
280 arg = self.next_arg()
281 if self.get_option(['--dfe']):
282 self.extra_paths.add(self.rebase(self.optarg))
283 elif self.get_option(['--snapshot']):
284 self.outputs.append(self.rebase(self.optarg))
285 elif self.get_option(['--depfile']):
286 self.depfiles = [self.rebase(self.optarg)]
287 elif self.get_option(['--snapshot-depfile']):
288 self.depfiles = [self.rebase(self.optarg)]
289 elif self.get_option([
290 '--packages', '-D', '--snapshot-kind',
291 '--depfile_output_filename', '--coverage',
292 '--ignore-unrecognized-flags'
293 ]):
294 pass
295 elif arg in ['--deterministic', '--sound-null-safety']:
296 pass
297 elif arg == 'compile':
298 self.extra_paths.add(
299 self.rebase(
300 os.path.join(self.dart_subdir,
301 'snapshots/dartdev.dart.snapshot')))
302 self.extra_paths.add(
303 self.rebase(os.path.join(self.dart_subdir, '../lib')))
304 return self.parse_compile()
305 elif arg == '../../pkg/compiler/lib/src/dart2js.dart':
306 self.entry_points.add(self.rebase(arg))
307 return self.parse_dart2js()
308 elif arg == 'gen/utils/compiler/dart2js.dart.dill':
309 self.extra_paths.add(self.rebase(arg))
310 return self.parse_dart2js()
311 elif arg == '../../pkg/dev_compiler/bin/dartdevc.dart':
312 self.entry_points.add(self.rebase(arg))
313 return self.parse_dartdevc()
314 elif arg == 'gen/utils/ddc/dartdevc.dart.dill':
315 self.extra_paths.add(self.rebase(arg))
316 return self.parse_dartdevc()
317 elif arg == 'gen/utils/dartanalyzer/dartanalyzer.dart.dill':
318 self.extra_paths.add(self.rebase(arg))
319 return self.parse_dartanalyzer()
320 elif arg == 'gen/utils/analysis_server/analysis_server.dart.dill':
321 self.extra_paths.add(self.rebase(arg))
322 return self.parse_analysis_server()
323 elif arg == '../../pkg/front_end/tool/_fasta/compile_platform.dart':
324 self.entry_points.add(self.rebase(arg))
325 return self.parse_compile_platform()
326 elif arg == '../../utils/compiler/create_snapshot_entry.dart':
327 self.entry_points.add(self.rebase(arg))
328 self.extra_paths.add('tools/make_version.py')
329 # This step is very cheap and python3 isn't in the docker image.
330 self.no_remote = True
331 return self.parse_create_snapshot_entry()
332 elif arg == '../../utils/bazel/kernel_worker.dart':
333 self.entry_points.add(self.rebase(arg))
334 return self.parse_kernel_worker()
335 elif arg == '../../pkg/vm/bin/gen_kernel.dart':
336 self.entry_points.add(self.rebase(arg))
337 return self.parse_gen_kernel()
338 elif arg == 'gen/utils/kernel-service/frontend_server.dart.dill':
339 self.extra_paths.add(self.rebase(arg))
340 return self.parse_frontend_server()
341 elif arg == 'gen/utils/dtd/generate_dtd_snapshot.dart.dill':
342 self.extra_paths.add(self.rebase(arg))
343 return self.parse_generate_dtd_snapshot()
344 elif arg == 'gen/utils/dds/generate_dds_snapshot.dart.dill':
345 self.extra_paths.add(self.rebase(arg))
346 return self.parse_generate_dds_snapshot()
347 elif arg == 'gen/utils/bazel/kernel_worker.dart.dill':
348 self.extra_paths.add(self.rebase(arg))
349 return self.parse_kernel_worker()
350 elif arg == 'gen/utils/dartdev/generate_dartdev_snapshot.dart.dill':
351 self.extra_paths.add(self.rebase(arg))
352 return self.parse_generate_dartdev_snapshot()
353 elif arg == 'gen/utils/gen_kernel/bootstrap_gen_kernel.dill':
354 self.extra_paths.add(self.rebase(arg))
355 return self.parse_bootstrap_gen_kernel()
356 elif arg == 'gen/utils/kernel-service/kernel-service_snapshot.dart.dill':
357 self.extra_paths.add(self.rebase(arg))
358 self.extra_paths.add(
359 self.rebase(
360 os.path.join(self.dart_subdir,
361 'vm_platform_strong.dill')))
362 return self.parse_kernel_service_snapshot()
363 else:
364 self.unsupported('dart', arg)
365

◆ parse_dart2js()

def rewrapper_dart.Rewrapper.parse_dart2js (   self)

Definition at line 378 of file rewrapper_dart.py.

378 def parse_dart2js(self):
379 while self.has_next_arg:
380 arg = self.next_arg()
381 if self.get_option(['-o', '--output']):
382 self.outputs.append(self.rebase(self.optarg))
383 self.outputs.append(
384 self.rebase(self.optarg.replace('.js', '.js.map')))
385 elif self.get_option(['--platform-binaries']):
386 self.extra_paths.add(
387 self.rebase(
388 os.path.join(self.optarg, 'dart2js_platform.dill')))
389 elif self.get_option([
390 '--invoker', '--packages', '--libraries-spec',
391 '--snapshot-kind', '--depfile_output_filename',
392 '--coverage', '--ignore-unrecognized-flags'
393 ]):
394 pass
395 elif arg in [
396 '--canary',
397 '--enable-asserts',
398 '-m',
399 '--minify',
400 '--no-source-maps',
401 ]:
402 pass
403 elif not arg.startswith('-'):
404 self.entry_points.add(self.rebase(arg))
405 else:
406 self.unsupported('dart2js', arg)
407

◆ parse_dartanalyzer()

def rewrapper_dart.Rewrapper.parse_dartanalyzer (   self)

Definition at line 437 of file rewrapper_dart.py.

437 def parse_dartanalyzer(self):
438 while self.has_next_arg:
439 arg = self.next_arg()
440 if arg in ['--help']:
441 pass
442 else:
443 self.unsupported('dartanalyzer', arg)
444

◆ parse_dartdevc()

def rewrapper_dart.Rewrapper.parse_dartdevc (   self)

Definition at line 408 of file rewrapper_dart.py.

408 def parse_dartdevc(self):
409 while self.has_next_arg:
410 arg = self.next_arg()
411 if self.get_option(['-o', '--output']):
412 self.outputs.append(self.rebase(self.optarg))
413 self.outputs.append(
414 self.rebase(self.optarg.replace('.js', '.js.map')))
415 self.outputs.append(
416 self.rebase(self.optarg.replace('.js', '.dill')))
417 elif self.get_option(['--dart-sdk-summary']):
418 self.extra_paths.add(self.rebase(self.optarg))
419 elif self.get_option([
420 '--multi-root-scheme', '--multi-root-output-path',
421 '--modules'
422 ]):
423 pass
424 elif arg in [
425 '--canary', '--no-summarize', '--sound-null-safety',
426 '--no-sound-null-safety'
427 ]:
428 pass
429 elif not arg.startswith('-'):
430 if arg.endswith('.dart'):
431 self.entry_points.add(self.rebase(arg))
432 else:
433 self.extra_paths.add(self.rebase(arg))
434 else:
435 self.unsupported('dartdevc', arg)
436

◆ parse_frontend_server()

def rewrapper_dart.Rewrapper.parse_frontend_server (   self)

Definition at line 592 of file rewrapper_dart.py.

592 def parse_frontend_server(self):
593 while self.has_next_arg:
594 arg = self.next_arg()
595 if self.get_option(['--platform']):
596 self.extra_paths.add(self.rebase(self.optarg))
597 elif self.get_option(['--sdk-root']):
598 pass
599 elif arg in ['--train']:
600 pass
601 elif not arg.startswith('-'):
602 self.entry_points.add(self.rebase(arg))
603 else:
604 self.unsupported('frontend_server', arg)
605

◆ parse_gen_kernel()

def rewrapper_dart.Rewrapper.parse_gen_kernel (   self)

Definition at line 541 of file rewrapper_dart.py.

541 def parse_gen_kernel(self):
542 while self.has_next_arg:
543 arg = self.next_arg()
544 if self.get_option(['-o', '--output']):
545 self.outputs.append(self.rebase(self.optarg))
546 elif self.get_option(['--platform']):
547 self.extra_paths.add(self.rebase(self.optarg))
548 elif self.get_option([
549 '--packages', '-D', '--filesystem-root',
550 '--filesystem-scheme'
551 ]):
552 pass
553 elif arg in ['--no-aot', '--no-embed-sources']:
554 pass
555 elif not arg.startswith('-'):
556 self.entry_points.add(self.rebase(arg))
557 else:
558 self.unsupported('gen_kernel', arg)
559

◆ parse_gen_snapshot()

def rewrapper_dart.Rewrapper.parse_gen_snapshot (   self)

Definition at line 653 of file rewrapper_dart.py.

653 def parse_gen_snapshot(self):
654 while self.has_next_arg:
655 arg = self.next_arg()
656 if self.get_option(['-o', '--output']):
657 self.outputs.append(self.rebase(self.optarg))
658 elif self.get_option([
659 '--vm_snapshot_data',
660 '--vm_snapshot_instructions',
661 '--isolate_snapshot_data',
662 '--isolate_snapshot_instructions',
663 '--elf',
664 ]):
665 self.outputs.append(self.rebase(self.optarg))
666 elif self.get_option([
667 '--snapshot_kind', '--snapshot-kind', '--coverage',
668 '--ignore-unrecognized-flags'
669 ]):
670 pass
671 elif arg in [
672 '--sound-null-safety',
673 '--deterministic',
674 '--enable-asserts',
675 ]:
676 pass
677 elif not arg.startswith('-'):
678 self.extra_paths.add(self.rebase(arg))
679 else:
680 self.unsupported('gen_snapshot', arg)
681
682

◆ parse_generate_dartdev_snapshot()

def rewrapper_dart.Rewrapper.parse_generate_dartdev_snapshot (   self)

Definition at line 645 of file rewrapper_dart.py.

645 def parse_generate_dartdev_snapshot(self):
646 while self.has_next_arg:
647 arg = self.next_arg()
648 if arg in ['--help']:
649 pass
650 else:
651 self.unsupported('generate_dartdev_snapshot', arg)
652

◆ parse_generate_dds_snapshot()

def rewrapper_dart.Rewrapper.parse_generate_dds_snapshot (   self)

Definition at line 614 of file rewrapper_dart.py.

614 def parse_generate_dds_snapshot(self):
615 while self.has_next_arg:
616 arg = self.next_arg()
617 if arg in ['--help']:
618 pass
619 else:
620 self.unsupported('generate_dds_snapshot', arg)
621

◆ parse_generate_dtd_snapshot()

def rewrapper_dart.Rewrapper.parse_generate_dtd_snapshot (   self)

Definition at line 606 of file rewrapper_dart.py.

606 def parse_generate_dtd_snapshot(self):
607 while self.has_next_arg:
608 arg = self.next_arg()
609 if arg in ['--train']:
610 pass
611 else:
612 self.unsupported('generate_dtd_snapshot', arg)
613

◆ parse_kernel_service_snapshot()

def rewrapper_dart.Rewrapper.parse_kernel_service_snapshot (   self)

Definition at line 584 of file rewrapper_dart.py.

584 def parse_kernel_service_snapshot(self):
585 while self.has_next_arg:
586 arg = self.next_arg()
587 if self.get_option(['--train']):
588 self.entry_points.add(self.rebase(self.optarg))
589 else:
590 self.unsupported('kernel_service_snapshot', arg)
591

◆ parse_kernel_worker() [1/2]

def rewrapper_dart.Rewrapper.parse_kernel_worker (   self)

Definition at line 520 of file rewrapper_dart.py.

520 def parse_kernel_worker(self):
521 while self.has_next_arg:
522 arg = self.next_arg()
523 if self.get_option(['-o', '--output']):
524 self.outputs.append(self.rebase(self.optarg))
525 elif self.get_option(['--dart-sdk-summary']):
526 self.extra_paths.add(self.rebase(self.optarg))
527 elif self.get_option(['--source']):
528 self.entry_points.add(self.rebase(self.optarg))
529 elif self.get_option(
530 ['--packages-file', '--target', '--dart-sdk-summary']):
531 pass
532 elif arg in [
533 '--summary-only',
534 '--sound-null-safety',
535 '--no-sound-null-safety',
536 ]:
537 pass
538 else:
539 self.unsupported('kernel_worker', arg)
540

◆ parse_kernel_worker() [2/2]

def rewrapper_dart.Rewrapper.parse_kernel_worker (   self)

Definition at line 622 of file rewrapper_dart.py.

622 def parse_kernel_worker(self):
623 while self.has_next_arg:
624 arg = self.next_arg()
625 if arg in ['--help']:
626 pass
627 elif self.get_option(['-o', '--output']):
628 self.outputs.append(self.rebase(self.optarg))
629 elif self.get_option(['--packages-file']):
630 self.extra_paths.add(self.rebase(self.optarg))
631 elif self.get_option(['--dart-sdk-summary']):
632 self.extra_paths.add(self.rebase(self.optarg))
633 elif self.get_option(['--source']):
634 self.entry_points.add(self.rebase(self.optarg))
635 elif self.get_option(['--target']):
636 pass
637 elif arg in [
638 '--sound-null-safety', '--no-sound-null-safety',
639 '--summary-only'
640 ]:
641 pass
642 else:
643 self.unsupported('kernel_worker', arg)
644

◆ parse_rewrapper()

def rewrapper_dart.Rewrapper.parse_rewrapper (   self)

Definition at line 245 of file rewrapper_dart.py.

245 def parse_rewrapper(self):
246 while self.has_next_arg:
247 arg = self.next_arg()
248 if self.get_option(['--cfg']):
249 with open(self.optarg, 'r') as fp:
250 for line in fp.readlines():
251 key, value = fp.split('=')
252 if key == 'exec_root':
253 self.exec_root = value
254 elif key == 'exec_strategy':
255 self.exec_strategy = value
256 elif self.get_option(['--exec_root']):
257 self.exec_root = os.path.abspath(self.optarg)
258 if not self.exec_root.endswith('/'):
259 self.exec_root += '/'
260 elif self.get_option(['--exec_strategy']):
261 self.exec_strategy = self.optarg
262 self.exec_strategy_explicit = True
263 elif arg == '--':
264 env_exec_strategy = os.environ.get('RBE_exec_strategy')
265 if env_exec_strategy and not self.exec_strategy_explicit:
266 self.exec_strategy = env_exec_strategy
267 elif arg.startswith('-'):
268 pass # Ignore unknown rewrapper options.
269 elif arg.endswith('/dart'):
270 self.dart_subdir = os.path.dirname(arg)
271 return self.parse_dart()
272 elif arg.endswith('/gen_snapshot') or arg.endswith(
273 '/gen_snapshot_product'):
274 return self.parse_gen_snapshot()
275 else:
276 self.unsupported('rewrapper', arg)
277

◆ rebase()

def rewrapper_dart.Rewrapper.rebase (   self,
  path 
)

Definition at line 217 of file rewrapper_dart.py.

217 def rebase(self, path):
218 if path.startswith('package:'):
219 return path
220 # Handle the use of paths starting with an extra slash.
221 if path.startswith('org-dartlang-kernel-service:///'):
222 path = os.path.join(self.exec_root,
223 path[len('org-dartlang-kernel-service:///'):])
224 if path.startswith('org-dartlang-kernel-service://'):
225 path = os.path.join(self.exec_root,
226 path[len('org-dartlang-kernel-service://'):])
227 # Handle the use of paths starting with an extra slash.
228 if path.startswith('file:////'):
229 path = path[len('file:///'):]
230 elif path.startswith('file://'):
231 path = path[len('file://'):]
232 path = os.path.abspath(path)
233 if not path.startswith(self.exec_root):
234 raise Exception(f"Path isn't inside exec_root: {path}")
235 return path[len(self.exec_root):]
236

◆ unsupported()

def rewrapper_dart.Rewrapper.unsupported (   self,
  state,
  arg 
)

Definition at line 208 of file rewrapper_dart.py.

208 def unsupported(self, state, arg):
209 raise Exception(f'''Unsupported operand in state {state}: {arg}
210
211You need to recognize the argument/option in the build/rbe/rewrapper_dart.py
212script in order to execute this command remotely on RBE. Read the big comments
213in the file explaining what this script is and how it works. Follow this stack
214trace to find the place to insert the appropriate support.
215''')
216

Member Data Documentation

◆ argv

rewrapper_dart.Rewrapper.argv

Definition at line 179 of file rewrapper_dart.py.

◆ dart_subdir

rewrapper_dart.Rewrapper.dart_subdir

Definition at line 170 of file rewrapper_dart.py.

◆ depfiles

rewrapper_dart.Rewrapper.depfiles

Definition at line 171 of file rewrapper_dart.py.

◆ entry_points

rewrapper_dart.Rewrapper.entry_points

Definition at line 172 of file rewrapper_dart.py.

◆ exec_root

rewrapper_dart.Rewrapper.exec_root

Definition at line 173 of file rewrapper_dart.py.

◆ exec_strategy

rewrapper_dart.Rewrapper.exec_strategy

Definition at line 174 of file rewrapper_dart.py.

◆ exec_strategy_explicit

rewrapper_dart.Rewrapper.exec_strategy_explicit

Definition at line 175 of file rewrapper_dart.py.

◆ extra_paths

rewrapper_dart.Rewrapper.extra_paths

Definition at line 176 of file rewrapper_dart.py.

◆ no_remote

rewrapper_dart.Rewrapper.no_remote

Definition at line 178 of file rewrapper_dart.py.

◆ optarg

rewrapper_dart.Rewrapper.optarg

Definition at line 180 of file rewrapper_dart.py.

◆ optind

rewrapper_dart.Rewrapper.optind

Definition at line 181 of file rewrapper_dart.py.

◆ outputs

rewrapper_dart.Rewrapper.outputs

Definition at line 177 of file rewrapper_dart.py.


The documentation for this class was generated from the following file: