Skip to content

Commit cc88c1e

Browse files
committed
Fix one-liner commentary
1 parent 0e60788 commit cc88c1e

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

1575515755
\commentary{%
1575615756
This is concerned with the dynamic type of the function object obtained by
@@ -15764,7 +15764,7 @@ \subsubsection{Instance Method Closurization}
1576415764

1576515765
\LMHash{}%
1576615766
Otherwise
15767-
(\commentary{when $p_j$ is not covariant}),
15767+
\commentary{(when $p_j$ is not covariant)},
1576815768
if $T$ is a non-generic class then for $j \in 1 .. n+k$,
1576915769
$T_j$ is a type annotation that denotes the same type
1577015770
(\ref{typeType})
@@ -15916,7 +15916,7 @@ \subsubsection{Super Closurization}
1591615916
The corresponding actual argument in the body is replaced by
1591715917
\code{$p_j$\,\,\AS\,\,$T'_j$}
1591815918
where $T'_j$ is the type which would be $T_j$ if $p_j$ had not been covariant
15919-
(\commentary{that is, it is computed as specified below}).
15919+
\commentary{(that is, it is computed as specified below)}.
1592015920

1592115921
\commentary{%
1592215922
This is concerned with the dynamic type of the function object obtained by
@@ -15930,7 +15930,7 @@ \subsubsection{Super Closurization}
1593015930

1593115931
\LMHash{}%
1593215932
Otherwise
15933-
(\commentary{when $p_j$ is not covariant}),
15933+
\commentary{(when $p_j$ is not covariant)},
1593415934
if $S$ is a non-generic class then for $j \in 1 .. n+k$,
1593515935
$T_j$ is a type annotation that denotes the same type
1593615936
(\ref{typeType})
@@ -16245,9 +16245,9 @@ \subsection{Null Shorting}
1624516245
\LMHash{}%
1624616246
We use the phrase null-shorting as an adjective in order to
1624716247
indicate the connections between null shorting and other concepts
16248-
(\commentary{%
16249-
e.g., ``the null-shorting translation is used during null shorting''%
16250-
}).
16248+
\commentary{%
16249+
(e.g., ``the null-shorting translation is used during null shorting'')%
16250+
}.
1625116251

1625216252
\commentary{%
1625316253
Let $e$ be an expression of the form
@@ -16289,7 +16289,7 @@ \subsection{Null Shorting}
1628916289
\metaCode{fn[x:\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1629016290
defines a meta-level function of type
1629116291
\metaCode{Exp\,\,$\rightarrow$\,\,Exp}
16292-
(\commentary{that is, a function from expressions to expressions}),
16292+
\commentary{(that is, a function from expressions to expressions)},
1629316293
and
1629416294
\metaCode{fn[k:\,\,Exp\,\,$\rightarrow$\,\,Exp]:\,\,Exp\,\,=>\,\,E}
1629516295
defines a meta-level function of type
@@ -19495,7 +19495,7 @@ \subsection{If}
1949519495

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

@@ -22899,7 +22899,7 @@ \subsection{Subtypes}
2289922899

2290022900
\LMHash{}%
2290122901
Intersection types
22902-
(\commentary{types of the form \code{$X$\,\&\,$S$}}),
22902+
\commentary{(types of the form \code{$X$\,\&\,$S$})},
2290322903
may arise during static analysis due to type promotion
2290422904
(\ref{typePromotion}).
2290522905
They never occur during execution,
@@ -24579,10 +24579,10 @@ \subsection{Standard Upper Bounds and Standard Lower Bounds}
2457924579
\item Each $B_{1i}$ and $B_{2i}$ are types with the same canonical syntax.
2458024580
\item For each required entry named $n$ in $\metavar{Named}_1$,
2458124581
$\metavar{Named}_2$ contains an entry named $n$
24582-
(\commentary{which may or may not be required}).
24582+
\commentary{(which may or may not be required)}.
2458324583
\item For each required entry named $n$ in $\metavar{Named}_2$,
2458424584
$\metavar{Named}_1$ contains an entry named $n$
24585-
(\commentary{which may or may not be required}).
24585+
\commentary{(which may or may not be required)}.
2458624586
\end{itemize}
2458724587

2458824588
Then \DefEqualsNewline{\UpperBoundType{$U_1$}{$U_2$}}{%
@@ -26636,9 +26636,9 @@ \subsection{Type Promotion}
2663626636
(\ref{localVariableDeclaration}).
2663726637
This is the stack of types of interest
2663826638
for the declaring occurrence of the name of $v$
26639-
(\commentary{%
26640-
i.e., the very first time the variable is mentioned, \ref{variables}%
26641-
}).
26639+
\commentary{%
26640+
(i.e., the very first time the variable is mentioned, \ref{variables})%
26641+
}.
2664226642

2664326643
\LMHash{}%
2664426644
If a local variable $v$ has an initializing expression
@@ -26943,9 +26943,9 @@ \section*{Appendix: Algorithmic Subtyping}
2694326943
The algorithm must be performed such that the first case that matches
2694426944
is always the case which is performed.
2694526945
The algorithm produces results which are both positive and negative
26946-
(\commentary{%
26947-
that is, in some situations the subtype relation is determined to be false%
26948-
}),
26946+
\commentary{%
26947+
(that is, in some situations the subtype relation is determined to be false)%
26948+
},
2694926949
which is important for performance because
2695026950
it is then unnecessary to consider any subsequent cases.
2695126951

@@ -26992,9 +26992,9 @@ \section*{Appendix: Algorithmic Subtyping}
2699226992
\item
2699326993
if $T_0$ is \code{Null}, \DYNAMIC, \VOID, or \code{$S$?} for any $S$,
2699426994
then the subtyping does not hold
26995-
(\commentary{%
26996-
i.e., the result of the subtyping query is known to be false%
26997-
}).
26995+
\commentary{%
26996+
(i.e., the result of the subtyping query is known to be false)%
26997+
}.
2699826998
\item
2699926999
Otherwise \SubtypeNE{T_0}{T_1} is true.
2700027000
\end{itemize}

0 commit comments

Comments
 (0)