Skip to content

Commit 2628c0b

Browse files
committed
Fix one-liner commentary
1 parent 4c8344e commit 2628c0b

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

specification/dartLangSpec.tex

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13154,7 +13154,7 @@ \subsection{Function Invocation}
1315413154
returns the \FALSE{} object,
1315513155
as must all further calls.
1315613156
In this situation, the outcome of invoking \code{current} is undefined
13157-
(\commentary{e.g., it could throw or return a default value}).
13157+
\commentary{(e.g., it could throw or return a default value)}.
1315813158
\item
1315913159
If it throws an exception object $e$ and stack trace $t$ then
1316013160
the current invocation of \code{moveNext()} throws $e$ and $t$ as well.
@@ -15770,7 +15770,7 @@ \subsubsection{Instance Method Closurization}
1577015770
The corresponding actual argument in the body is replaced by
1577115771
\code{$p_j$\,\,\AS\,\,$T'_j$}
1577215772
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15773-
(\commentary{that is, it is computed as specified below}).
15773+
\commentary{(that is, it is computed as specified below)}.
1577415774

1577515775
\commentary{%
1577615776
This is concerned with the dynamic type of the function object obtained by
@@ -15784,7 +15784,7 @@ \subsubsection{Instance Method Closurization}
1578415784

1578515785
\LMHash{}%
1578615786
Otherwise
15787-
(\commentary{when $p_j$ is not covariant}),
15787+
\commentary{(when $p_j$ is not covariant)},
1578815788
if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1578915789
$T_j$ is a type annotation that denotes the same type
1579015790
(\ref{typeType})
@@ -15936,7 +15936,7 @@ \subsubsection{Super Closurization}
1593615936
The corresponding actual argument in the body is replaced by
1593715937
\code{$p_j$\,\,\AS\,\,$T'_j$}
1593815938
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15939-
(\commentary{that is, it is computed as specified below}).
15939+
\commentary{(that is, it is computed as specified below)}.
1594015940

1594115941
\commentary{%
1594215942
This is concerned with the dynamic type of the function object obtained by
@@ -15950,7 +15950,7 @@ \subsubsection{Super Closurization}
1595015950

1595115951
\LMHash{}%
1595215952
Otherwise
15953-
(\commentary{when $p_j$ is not covariant}),
15953+
\commentary{(when $p_j$ is not covariant)},
1595415954
if $S$ is a non-generic class then for $j \in 1 .. n+k$,
1595515955
$T_j$ is a type annotation that denotes the same type
1595615956
(\ref{typeType})
@@ -16265,9 +16265,9 @@ \subsection{Null Shorting}
1626516265
\LMHash{}%
1626616266
We use the phrase null-shorting as an adjective in order to
1626716267
indicate the connections between null shorting and other concepts
16268-
(\commentary{%
16269-
e.g., ``the null-shorting translation is used during null shorting''%
16270-
}).
16268+
\commentary{%
16269+
(e.g., ``the null-shorting translation is used during null shorting'')%
16270+
}.
1627116271

1627216272
\commentary{%
1627316273
Let $e$ be an expression of the form
@@ -16309,7 +16309,7 @@ \subsection{Null Shorting}
1630916309
\metaCode{fn[x:\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1631016310
defines a meta-level function of type
1631116311
\metaCode{Exp\,\,$\rightarrow$\,\,Exp}
16312-
(\commentary{that is, a function from expressions to expressions}),
16312+
\commentary{(that is, a function from expressions to expressions)},
1631316313
and
1631416314
\metaCode{fn[k:\,\,Exp\,\,$\rightarrow$\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1631516315
defines a meta-level function of type
@@ -19515,7 +19515,7 @@ \subsection{If}
1951519515

1951619516
\LMHash{}%
1951719517
Consider an \IF{} statement of any of the forms mentioned above
19518-
(\commentary{the statement then starts with \code{\IF\,\,($e$)}}).
19518+
\commentary{(the statement then starts with \code{\IF\,\,($e$)})}.
1951919519
It is a \Error{compile-time error} if the type of the expression $e$
1952019520
is not assignable to \code{bool}.
1952119521

@@ -22967,7 +22967,7 @@ \subsection{Subtypes}
2296722967

2296822968
\LMHash{}%
2296922969
Intersection types
22970-
(\commentary{types of the form \code{$X$\,\&\,$S$}}),
22970+
\commentary{(types of the form \code{$X$\,\&\,$S$})},
2297122971
may arise during static analysis due to type promotion
2297222972
(\ref{typePromotion}).
2297322973
They never occur during execution,
@@ -24647,10 +24647,10 @@ \subsection{Standard Upper Bounds and Standard Lower Bounds}
2464724647
\item Each $B_{1i}$ and $B_{2i}$ are types with the same canonical syntax.
2464824648
\item For each required entry named $n$ in $\metavar{Named}_1$,
2464924649
$\metavar{Named}_2$ contains an entry named $n$
24650-
(\commentary{which may or may not be required}).
24650+
\commentary{(which may or may not be required)}.
2465124651
\item For each required entry named $n$ in $\metavar{Named}_2$,
2465224652
$\metavar{Named}_1$ contains an entry named $n$
24653-
(\commentary{which may or may not be required}).
24653+
\commentary{(which may or may not be required)}.
2465424654
\end{itemize}
2465524655

2465624656
Then \DefEqualsNewline{\UpperBoundType{$U_1$}{$U_2$}}{%
@@ -26718,9 +26718,9 @@ \subsection{Type Promotion}
2671826718
(\ref{localVariableDeclaration}).
2671926719
This is the stack of types of interest
2672026720
for the declaring occurrence of the name of $v$
26721-
(\commentary{%
26722-
i.e., the very first time the variable is mentioned, \ref{variables}%
26723-
}).
26721+
\commentary{%
26722+
(i.e., the very first time the variable is mentioned, \ref{variables})%
26723+
}.
2672426724

2672526725
\LMHash{}%
2672626726
If a local variable $v$ has an initializing expression
@@ -27000,9 +27000,9 @@ \section*{Appendix: Algorithmic Subtyping}
2700027000
The algorithm must be performed such that the first case that matches
2700127001
is always the case which is performed.
2700227002
The algorithm produces results which are both positive and negative
27003-
(\commentary{%
27004-
that is, in some situations the subtype relation is determined to be false%
27005-
}),
27003+
\commentary{%
27004+
(that is, in some situations the subtype relation is determined to be false)%
27005+
},
2700627006
which is important for performance because
2700727007
it is then unnecessary to consider any subsequent cases.
2700827008

@@ -27049,9 +27049,9 @@ \section*{Appendix: Algorithmic Subtyping}
2704927049
\item
2705027050
if $T_0$ is \code{Null}, \DYNAMIC, \VOID, or \code{$S$?} for any $S$,
2705127051
then the subtyping does not hold
27052-
(\commentary{%
27053-
i.e., the result of the subtyping query is known to be false%
27054-
}).
27052+
\commentary{%
27053+
(i.e., the result of the subtyping query is known to be false)%
27054+
}.
2705527055
\item
2705627056
Otherwise \SubtypeNE{T_0}{T_1} is true.
2705727057
\end{itemize}

0 commit comments

Comments
 (0)