Skip to content

Commit 3c5229f

Browse files
committed
Fix one-liner commentary
1 parent b52f109 commit 3c5229f

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
@@ -13138,7 +13138,7 @@ \subsection{Function Invocation}
1313813138
returns the \FALSE{} object,
1313913139
as must all further calls.
1314013140
In this situation, the outcome of invoking \code{current} is undefined
13141-
(\commentary{e.g., it could throw or return a default value}).
13141+
\commentary{(e.g., it could throw or return a default value)}.
1314213142
\item
1314313143
If it throws an exception object $e$ and stack trace $t$ then
1314413144
the current invocation of \code{moveNext()} throws $e$ and $t$ as well.
@@ -15754,7 +15754,7 @@ \subsubsection{Instance Method Closurization}
1575415754
The corresponding actual argument in the body is replaced by
1575515755
\code{$p_j$\,\,\AS\,\,$T'_j$}
1575615756
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15757-
(\commentary{that is, it is computed as specified below}).
15757+
\commentary{(that is, it is computed as specified below)}.
1575815758

1575915759
\commentary{%
1576015760
This is concerned with the dynamic type of the function object obtained by
@@ -15768,7 +15768,7 @@ \subsubsection{Instance Method Closurization}
1576815768

1576915769
\LMHash{}%
1577015770
Otherwise
15771-
(\commentary{when $p_j$ is not covariant}),
15771+
\commentary{(when $p_j$ is not covariant)},
1577215772
if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1577315773
$T_j$ is a type annotation that denotes the same type
1577415774
(\ref{typeType})
@@ -15920,7 +15920,7 @@ \subsubsection{Super Closurization}
1592015920
The corresponding actual argument in the body is replaced by
1592115921
\code{$p_j$\,\,\AS\,\,$T'_j$}
1592215922
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15923-
(\commentary{that is, it is computed as specified below}).
15923+
\commentary{(that is, it is computed as specified below)}.
1592415924

1592515925
\commentary{%
1592615926
This is concerned with the dynamic type of the function object obtained by
@@ -15934,7 +15934,7 @@ \subsubsection{Super Closurization}
1593415934

1593515935
\LMHash{}%
1593615936
Otherwise
15937-
(\commentary{when $p_j$ is not covariant}),
15937+
\commentary{(when $p_j$ is not covariant)},
1593815938
if $S$ is a non-generic class then for $j \in 1 .. n+k$,
1593915939
$T_j$ is a type annotation that denotes the same type
1594015940
(\ref{typeType})
@@ -16249,9 +16249,9 @@ \subsection{Null Shorting}
1624916249
\LMHash{}%
1625016250
We use the phrase null-shorting as an adjective in order to
1625116251
indicate the connections between null shorting and other concepts
16252-
(\commentary{%
16253-
e.g., ``the null-shorting translation is used during null shorting''%
16254-
}).
16252+
\commentary{%
16253+
(e.g., ``the null-shorting translation is used during null shorting'')%
16254+
}.
1625516255

1625616256
\commentary{%
1625716257
Let $e$ be an expression of the form
@@ -16293,7 +16293,7 @@ \subsection{Null Shorting}
1629316293
\metaCode{fn[x:\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1629416294
defines a meta-level function of type
1629516295
\metaCode{Exp\,\,$\rightarrow$\,\,Exp}
16296-
(\commentary{that is, a function from expressions to expressions}),
16296+
\commentary{(that is, a function from expressions to expressions)},
1629716297
and
1629816298
\metaCode{fn[k:\,\,Exp\,\,$\rightarrow$\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1629916299
defines a meta-level function of type
@@ -19499,7 +19499,7 @@ \subsection{If}
1949919499

1950019500
\LMHash{}%
1950119501
Consider an \IF{} statement of any of the forms mentioned above
19502-
(\commentary{the statement then starts with \code{\IF\,\,($e$)}}).
19502+
\commentary{(the statement then starts with \code{\IF\,\,($e$)})}.
1950319503
It is a \Error{compile-time error} if the type of the expression $e$
1950419504
is not assignable to \code{bool}.
1950519505

@@ -22903,7 +22903,7 @@ \subsection{Subtypes}
2290322903

2290422904
\LMHash{}%
2290522905
Intersection types
22906-
(\commentary{types of the form \code{$X$\,\&\,$S$}}),
22906+
\commentary{(types of the form \code{$X$\,\&\,$S$})},
2290722907
may arise during static analysis due to type promotion
2290822908
(\ref{typePromotion}).
2290922909
They never occur during execution,
@@ -24583,10 +24583,10 @@ \subsection{Standard Upper Bounds and Standard Lower Bounds}
2458324583
\item Each $B_{1i}$ and $B_{2i}$ are types with the same canonical syntax.
2458424584
\item For each required entry named $n$ in $\metavar{Named}_1$,
2458524585
$\metavar{Named}_2$ contains an entry named $n$
24586-
(\commentary{which may or may not be required}).
24586+
\commentary{(which may or may not be required)}.
2458724587
\item For each required entry named $n$ in $\metavar{Named}_2$,
2458824588
$\metavar{Named}_1$ contains an entry named $n$
24589-
(\commentary{which may or may not be required}).
24589+
\commentary{(which may or may not be required)}.
2459024590
\end{itemize}
2459124591

2459224592
Then \DefEqualsNewline{\UpperBoundType{$U_1$}{$U_2$}}{%
@@ -26654,9 +26654,9 @@ \subsection{Type Promotion}
2665426654
(\ref{localVariableDeclaration}).
2665526655
This is the stack of types of interest
2665626656
for the declaring occurrence of the name of $v$
26657-
(\commentary{%
26658-
i.e., the very first time the variable is mentioned, \ref{variables}%
26659-
}).
26657+
\commentary{%
26658+
(i.e., the very first time the variable is mentioned, \ref{variables})%
26659+
}.
2666026660

2666126661
\LMHash{}%
2666226662
If a local variable $v$ has an initializing expression
@@ -26961,9 +26961,9 @@ \section*{Appendix: Algorithmic Subtyping}
2696126961
The algorithm must be performed such that the first case that matches
2696226962
is always the case which is performed.
2696326963
The algorithm produces results which are both positive and negative
26964-
(\commentary{%
26965-
that is, in some situations the subtype relation is determined to be false%
26966-
}),
26964+
\commentary{%
26965+
(that is, in some situations the subtype relation is determined to be false)%
26966+
},
2696726967
which is important for performance because
2696826968
it is then unnecessary to consider any subsequent cases.
2696926969

@@ -27010,9 +27010,9 @@ \section*{Appendix: Algorithmic Subtyping}
2701027010
\item
2701127011
if $T_0$ is \code{Null}, \DYNAMIC, \VOID, or \code{$S$?} for any $S$,
2701227012
then the subtyping does not hold
27013-
(\commentary{%
27014-
i.e., the result of the subtyping query is known to be false%
27015-
}).
27013+
\commentary{%
27014+
(i.e., the result of the subtyping query is known to be false)%
27015+
}.
2701627016
\item
2701727017
Otherwise \SubtypeNE{T_0}{T_1} is true.
2701827018
\end{itemize}

0 commit comments

Comments
 (0)