Skip to content

Commit 15b9f1d

Browse files
committed
Fix one-liner commentary
1 parent 1725016 commit 15b9f1d

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
@@ -13161,7 +13161,7 @@ \subsection{Function Invocation}
1316113161
returns the \FALSE{} object,
1316213162
as must all further calls.
1316313163
In this situation, the outcome of invoking \code{current} is undefined
13164-
(\commentary{e.g., it could throw or return a default value}).
13164+
\commentary{(e.g., it could throw or return a default value)}.
1316513165
\item
1316613166
If it throws an exception object $e$ and stack trace $t$ then
1316713167
the current invocation of \code{moveNext()} throws $e$ and $t$ as well.
@@ -15777,7 +15777,7 @@ \subsubsection{Instance Method Closurization}
1577715777
The corresponding actual argument in the body is replaced by
1577815778
\code{$p_j$\,\,\AS\,\,$T'_j$}
1577915779
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15780-
(\commentary{that is, it is computed as specified below}).
15780+
\commentary{(that is, it is computed as specified below)}.
1578115781

1578215782
\commentary{%
1578315783
This is concerned with the dynamic type of the function object obtained by
@@ -15791,7 +15791,7 @@ \subsubsection{Instance Method Closurization}
1579115791

1579215792
\LMHash{}%
1579315793
Otherwise
15794-
(\commentary{when $p_j$ is not covariant}),
15794+
\commentary{(when $p_j$ is not covariant)},
1579515795
if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1579615796
$T_j$ is a type annotation that denotes the same type
1579715797
(\ref{typeType})
@@ -15943,7 +15943,7 @@ \subsubsection{Super Closurization}
1594315943
The corresponding actual argument in the body is replaced by
1594415944
\code{$p_j$\,\,\AS\,\,$T'_j$}
1594515945
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15946-
(\commentary{that is, it is computed as specified below}).
15946+
\commentary{(that is, it is computed as specified below)}.
1594715947

1594815948
\commentary{%
1594915949
This is concerned with the dynamic type of the function object obtained by
@@ -15957,7 +15957,7 @@ \subsubsection{Super Closurization}
1595715957

1595815958
\LMHash{}%
1595915959
Otherwise
15960-
(\commentary{when $p_j$ is not covariant}),
15960+
\commentary{(when $p_j$ is not covariant)},
1596115961
if $S$ is a non-generic class then for $j \in 1 .. n+k$,
1596215962
$T_j$ is a type annotation that denotes the same type
1596315963
(\ref{typeType})
@@ -16272,9 +16272,9 @@ \subsection{Null Shorting}
1627216272
\LMHash{}%
1627316273
We use the phrase null-shorting as an adjective in order to
1627416274
indicate the connections between null shorting and other concepts
16275-
(\commentary{%
16276-
e.g., ``the null-shorting translation is used during null shorting''%
16277-
}).
16275+
\commentary{%
16276+
(e.g., ``the null-shorting translation is used during null shorting'')%
16277+
}.
1627816278

1627916279
\commentary{%
1628016280
Let $e$ be an expression of the form
@@ -16316,7 +16316,7 @@ \subsection{Null Shorting}
1631616316
\metaCode{fn[x:\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1631716317
defines a meta-level function of type
1631816318
\metaCode{Exp\,\,$\rightarrow$\,\,Exp}
16319-
(\commentary{that is, a function from expressions to expressions}),
16319+
\commentary{(that is, a function from expressions to expressions)},
1632016320
and
1632116321
\metaCode{fn[k:\,\,Exp\,\,$\rightarrow$\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1632216322
defines a meta-level function of type
@@ -19522,7 +19522,7 @@ \subsection{If}
1952219522

1952319523
\LMHash{}%
1952419524
Consider an \IF{} statement of any of the forms mentioned above
19525-
(\commentary{the statement then starts with \code{\IF\,\,($e$)}}).
19525+
\commentary{(the statement then starts with \code{\IF\,\,($e$)})}.
1952619526
It is a \Error{compile-time error} if the type of the expression $e$
1952719527
is not assignable to \code{bool}.
1952819528

@@ -22974,7 +22974,7 @@ \subsection{Subtypes}
2297422974

2297522975
\LMHash{}%
2297622976
Intersection types
22977-
(\commentary{types of the form \code{$X$\,\&\,$S$}}),
22977+
\commentary{(types of the form \code{$X$\,\&\,$S$})},
2297822978
may arise during static analysis due to type promotion
2297922979
(\ref{typePromotion}).
2298022980
They never occur during execution,
@@ -24654,10 +24654,10 @@ \subsection{Standard Upper Bounds and Standard Lower Bounds}
2465424654
\item Each $B_{1i}$ and $B_{2i}$ are types with the same canonical syntax.
2465524655
\item For each required entry named $n$ in $\metavar{Named}_1$,
2465624656
$\metavar{Named}_2$ contains an entry named $n$
24657-
(\commentary{which may or may not be required}).
24657+
\commentary{(which may or may not be required)}.
2465824658
\item For each required entry named $n$ in $\metavar{Named}_2$,
2465924659
$\metavar{Named}_1$ contains an entry named $n$
24660-
(\commentary{which may or may not be required}).
24660+
\commentary{(which may or may not be required)}.
2466124661
\end{itemize}
2466224662

2466324663
Then \DefEqualsNewline{\UpperBoundType{$U_1$}{$U_2$}}{%
@@ -26725,9 +26725,9 @@ \subsection{Type Promotion}
2672526725
(\ref{localVariableDeclaration}).
2672626726
This is the stack of types of interest
2672726727
for the declaring occurrence of the name of $v$
26728-
(\commentary{%
26729-
i.e., the very first time the variable is mentioned, \ref{variables}%
26730-
}).
26728+
\commentary{%
26729+
(i.e., the very first time the variable is mentioned, \ref{variables})%
26730+
}.
2673126731

2673226732
\LMHash{}%
2673326733
If a local variable $v$ has an initializing expression
@@ -27007,9 +27007,9 @@ \section*{Appendix: Algorithmic Subtyping}
2700727007
The algorithm must be performed such that the first case that matches
2700827008
is always the case which is performed.
2700927009
The algorithm produces results which are both positive and negative
27010-
(\commentary{%
27011-
that is, in some situations the subtype relation is determined to be false%
27012-
}),
27010+
\commentary{%
27011+
(that is, in some situations the subtype relation is determined to be false)%
27012+
},
2701327013
which is important for performance because
2701427014
it is then unnecessary to consider any subsequent cases.
2701527015

@@ -27056,9 +27056,9 @@ \section*{Appendix: Algorithmic Subtyping}
2705627056
\item
2705727057
if $T_0$ is \code{Null}, \DYNAMIC, \VOID, or \code{$S$?} for any $S$,
2705827058
then the subtyping does not hold
27059-
(\commentary{%
27060-
i.e., the result of the subtyping query is known to be false%
27061-
}).
27059+
\commentary{%
27060+
(i.e., the result of the subtyping query is known to be false)%
27061+
}.
2706227062
\item
2706327063
Otherwise \SubtypeNE{T_0}{T_1} is true.
2706427064
\end{itemize}

0 commit comments

Comments
 (0)