Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html

Issue 453093005: Regeneration and redirects for book content (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html
diff --git a/src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html b/src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html
index 15743e1b4a4270a3e96c4456a8dbbfa80617b04d..707979207c9e32eb0a7b9f0ee814a3aa8e25a1d5 100644
--- a/src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html
+++ b/src/site/docs/dart-up-and-running/contents/ch04-tools-dart-vm.html
@@ -5,27 +5,4 @@ layout: book
title: "dart: The Standalone VM from Dart: Up and Running"
description: "Read dart: The Standalone VM of Dart: Up and Running, published by O'Reilly."
---
-<div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">dart: The Standalone VM</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04-tools-dart2js.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Tools</th><td width="20%" align="right"> <a accesskey="n" href="ch04-tools-dart_analyzer.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch04-tools-dart-vm"></a>dart: The Standalone VM</h2></div></div></div><p>You can use the <span class="emphasis"><em>dart</em></span> tool (<code class="literal">bin/dart</code>) to run Dart command-line apps such as
- server-side scripts, programs, and servers. During development, you also
- have the option to run command-line apps using <a class="link" href="ch04-tools-editor.html#ch04-editor-run" title="Running Apps">Dart Editor</a>.</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="ch04-tools-dart-vm-basic-usage"></a>Basic Usage</h3></div></div></div><p>Here’s an example of running a Dart file on the command
- line:</p><pre class="screen"><em><span class="remark">lang-sh
-</span></em>dart test.dart</pre></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="ch04-tools-dart-vm-options"></a>Options</h3></div></div></div><p>Common command-line options for dart include:</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">-c</code><span class="emphasis"><em>
- or </em></span><code class="literal">--checked</code></span></dt><dd><p>Enable <span class="emphasis"><em>both</em></span> assertions and type checks
- (checked mode).</p></dd><dt><span class="term"><code class="literal">-p<em class="replaceable"><code>&lt;path&gt;</code></em> or
- -package-root=<em class="replaceable"><code>&lt;path&gt;</code></em></code></span></dt><dd><p>Specify where to find imported libraries.</p></dd><dt><span class="term"><code class="literal">--version</code></span></dt><dd><p>Display VM version information.</p></dd><dt><span class="term"><code class="literal">-h</code><span class="emphasis"><em>
- or </em></span><code class="literal">--help</code></span></dt><dd><p>Display help. (Add <code class="literal">-v</code> for
- information about all options.)</p></dd></dl></div><p>You can also generate snapshots: <em><span class="remark">{PENDING: Omitted --debug
- because John says it's not generally useful. The verbose help also says
- the following are supported, but I haven't documented them: break-at,
- print-script, --enable-vm-service.}</span></em></p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="literal">
- --snapshot=<em class="replaceable"><code>&lt;filename&gt;</code></em></code></span></dt><dd><p>Generate a snapshot in the specified file. For information
- on generating and running snapshots, see the article <a class="ulink" href="https://www.dartlang.org/articles/snapshots/" target="_top">Snapshots in
- Dart.</a></p></dd></dl></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="ch04-tools-dart-vm-type-checks"></a>Enabling Checked Mode</h3></div></div></div><p>Dart programs run in one of two modes: checked or production. By
- default, the Dart VM runs in production mode. We recommend that you
- enable checked mode for development and testing.</p><p>In checked mode, assignments are dynamically checked, and certain
- violations of the type system raise exceptions at runtime. In production
- mode, static type annotations have no effect.</p><p>Assert statements are also enabled in checked mode. An <a class="link" href="ch02.html#assert" title="Assert">assert statement</a> checks a boolean condition,
- raising an exception if the condition is false. Assertions do not run in
- production mode.</p><p>You can run the VM in checked mode with the
- <code class="literal">--checked</code> command-line flag:</p><pre class="screen"><em><span class="remark">lang-sh
-</span></em>dart --checked <em class="replaceable"><code>test.dart</code></em></pre></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04-tools-dart2js.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04-tools-dart_analyzer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">dart2js: The Dart-to-JavaScript Compiler </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> dartanalyzer: The Static Analyzer</td></tr></table></div>
+<div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">dart: The Standalone VM</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch04-tools-dart2js.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Tools</th><td width="20%" align="right"> <a accesskey="n" href="ch04-tools-dart_analyzer.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch04-tools-dart-vm"></a>dart: The Standalone VM</h2></div></div></div><p>The documentation for dart has moved to <a class="ulink" href="/tools/dart-vm/" target="_top">www.dartlang.org/tools/dart-vm/</a>.</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch04-tools-dart2js.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch04.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch04-tools-dart_analyzer.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">dart2js: The Dart-to-JavaScript Compiler </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> dartanalyzer: The Static Analyzer</td></tr></table></div>
« no previous file with comments | « src/site/docs/dart-up-and-running/contents/ch04.html ('k') | src/site/docs/dart-up-and-running/contents/ch05.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698