Skip to content

Commit 21e111e

Browse files
committed
Fix one-liner commentary
1 parent 19cbf67 commit 21e111e

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
@@ -13150,7 +13150,7 @@ \subsection{Function Invocation}
1315013150
returns the \FALSE{} object,
1315113151
as must all further calls.
1315213152
In this situation, the outcome of invoking \code{current} is undefined
13153-
(\commentary{e.g., it could throw or return a default value}).
13153+
\commentary{(e.g., it could throw or return a default value)}.
1315413154
\item
1315513155
If it throws an exception object $e$ and stack trace $t$ then
1315613156
the current invocation of \code{moveNext()} throws $e$ and $t$ as well.
@@ -15766,7 +15766,7 @@ \subsubsection{Instance Method Closurization}
1576615766
The corresponding actual argument in the body is replaced by
1576715767
\code{$p_j$\,\,\AS\,\,$T'_j$}
1576815768
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15769-
(\commentary{that is, it is computed as specified below}).
15769+
\commentary{(that is, it is computed as specified below)}.
1577015770

1577115771
\commentary{%
1577215772
This is concerned with the dynamic type of the function object obtained by
@@ -15780,7 +15780,7 @@ \subsubsection{Instance Method Closurization}
1578015780

1578115781
\LMHash{}%
1578215782
Otherwise
15783-
(\commentary{when $p_j$ is not covariant}),
15783+
\commentary{(when $p_j$ is not covariant)},
1578415784
if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1578515785
$T_j$ is a type annotation that denotes the same type
1578615786
(\ref{typeType})
@@ -15932,7 +15932,7 @@ \subsubsection{Super Closurization}
1593215932
The corresponding actual argument in the body is replaced by
1593315933
\code{$p_j$\,\,\AS\,\,$T'_j$}
1593415934
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15935-
(\commentary{that is, it is computed as specified below}).
15935+
\commentary{(that is, it is computed as specified below)}.
1593615936

1593715937
\commentary{%
1593815938
This is concerned with the dynamic type of the function object obtained by
@@ -15946,7 +15946,7 @@ \subsubsection{Super Closurization}
1594615946

1594715947
\LMHash{}%
1594815948
Otherwise
15949-
(\commentary{when $p_j$ is not covariant}),
15949+
\commentary{(when $p_j$ is not covariant)},
1595015950
if $S$ is a non-generic class then for $j \in 1 .. n+k$,
1595115951
$T_j$ is a type annotation that denotes the same type
1595215952
(\ref{typeType})
@@ -16261,9 +16261,9 @@ \subsection{Null Shorting}
1626116261
\LMHash{}%
1626216262
We use the phrase null-shorting as an adjective in order to
1626316263
indicate the connections between null shorting and other concepts
16264-
(\commentary{%
16265-
e.g., ``the null-shorting translation is used during null shorting''%
16266-
}).
16264+
\commentary{%
16265+
(e.g., ``the null-shorting translation is used during null shorting'')%
16266+
}.
1626716267

1626816268
\commentary{%
1626916269
Let $e$ be an expression of the form
@@ -16305,7 +16305,7 @@ \subsection{Null Shorting}
1630516305
\metaCode{fn[x:\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1630616306
defines a meta-level function of type
1630716307
\metaCode{Exp\,\,$\rightarrow$\,\,Exp}
16308-
(\commentary{that is, a function from expressions to expressions}),
16308+
\commentary{(that is, a function from expressions to expressions)},
1630916309
and
1631016310
\metaCode{fn[k:\,\,Exp\,\,$\rightarrow$\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1631116311
defines a meta-level function of type
@@ -19511,7 +19511,7 @@ \subsection{If}
1951119511

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

@@ -22915,7 +22915,7 @@ \subsection{Subtypes}
2291522915

2291622916
\LMHash{}%
2291722917
Intersection types
22918-
(\commentary{types of the form \code{$X$\,\&\,$S$}}),
22918+
\commentary{(types of the form \code{$X$\,\&\,$S$})},
2291922919
may arise during static analysis due to type promotion
2292022920
(\ref{typePromotion}).
2292122921
They never occur during execution,
@@ -24595,10 +24595,10 @@ \subsection{Standard Upper Bounds and Standard Lower Bounds}
2459524595
\item Each $B_{1i}$ and $B_{2i}$ are types with the same canonical syntax.
2459624596
\item For each required entry named $n$ in $\metavar{Named}_1$,
2459724597
$\metavar{Named}_2$ contains an entry named $n$
24598-
(\commentary{which may or may not be required}).
24598+
\commentary{(which may or may not be required)}.
2459924599
\item For each required entry named $n$ in $\metavar{Named}_2$,
2460024600
$\metavar{Named}_1$ contains an entry named $n$
24601-
(\commentary{which may or may not be required}).
24601+
\commentary{(which may or may not be required)}.
2460224602
\end{itemize}
2460324603

2460424604
Then \DefEqualsNewline{\UpperBoundType{$U_1$}{$U_2$}}{%
@@ -26666,9 +26666,9 @@ \subsection{Type Promotion}
2666626666
(\ref{localVariableDeclaration}).
2666726667
This is the stack of types of interest
2666826668
for the declaring occurrence of the name of $v$
26669-
(\commentary{%
26670-
i.e., the very first time the variable is mentioned, \ref{variables}%
26671-
}).
26669+
\commentary{%
26670+
(i.e., the very first time the variable is mentioned, \ref{variables})%
26671+
}.
2667226672

2667326673
\LMHash{}%
2667426674
If a local variable $v$ has an initializing expression
@@ -26973,9 +26973,9 @@ \section*{Appendix: Algorithmic Subtyping}
2697326973
The algorithm must be performed such that the first case that matches
2697426974
is always the case which is performed.
2697526975
The algorithm produces results which are both positive and negative
26976-
(\commentary{%
26977-
that is, in some situations the subtype relation is determined to be false%
26978-
}),
26976+
\commentary{%
26977+
(that is, in some situations the subtype relation is determined to be false)%
26978+
},
2697926979
which is important for performance because
2698026980
it is then unnecessary to consider any subsequent cases.
2698126981

@@ -27022,9 +27022,9 @@ \section*{Appendix: Algorithmic Subtyping}
2702227022
\item
2702327023
if $T_0$ is \code{Null}, \DYNAMIC, \VOID, or \code{$S$?} for any $S$,
2702427024
then the subtyping does not hold
27025-
(\commentary{%
27026-
i.e., the result of the subtyping query is known to be false%
27027-
}).
27025+
\commentary{%
27026+
(i.e., the result of the subtyping query is known to be false)%
27027+
}.
2702827028
\item
2702927029
Otherwise \SubtypeNE{T_0}{T_1} is true.
2703027030
\end{itemize}

0 commit comments

Comments
 (0)