Skip to content

Commit c488203

Browse files
committed
Removed unused argument
1 parent 78f695d commit c488203

File tree

1 file changed

+38
-34
lines changed

1 file changed

+38
-34
lines changed

specification/dartLangSpec.tex

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21913,103 +21913,107 @@ \subsection{Subtypes}
2191321913
\begin{figure}[p]
2191421914
\def\VSP{\vspace{4mm}}
2191521915
\def\ExtraVSP{\vspace{2mm}}
21916-
\def\Axiom#1#2#3#4{\centerline{\inference[#1]{}{\SubtypeStd{#3}{#4}}}\VSP}
21917-
\def\Rule#1#2#3#4#5#6{\centerline{\inference[#1]{\SubtypeStd{#3}{#4}}{\SubtypeStd{#5}{#6}}}\VSP}
21918-
\def\RuleTwo#1#2#3#4#5#6#7#8{%
21919-
\centerline{\inference[#1]{\SubtypeStd{#3}{#4} & \SubtypeStd{#5}{#6}}{\SubtypeStd{#7}{#8}}}\VSP}
21920-
\def\RuleRaw#1#2#3#4#5{%
21921-
\centerline{\inference[#1]{#3}{\SubtypeStd{#4}{#5}}}\VSP}
21922-
\def\RuleRawRaw#1#2#3#4{\centerline{\inference[#1]{#3}{#4}}\VSP}
21916+
\def\Axiom#1#2#3{\centerline{\inference[#1]{}{\SubtypeStd{#2}{#3}}}\VSP}
21917+
\def\Rule#1#2#3#4#5{%
21918+
\centerline{\inference[#1]{\SubtypeStd{#2}{#3}}{\SubtypeStd{#4}{#5}}}\VSP}
21919+
\def\RuleTwo#1#2#3#4#5#6#7{%
21920+
\centerline{\inference[#1]{\SubtypeStd{#2}{#3} & %
21921+
\SubtypeStd{#4}{#5}}{\SubtypeStd{#6}{#7}}}\VSP}
21922+
\def\RuleRaw#1#2#3#4{%
21923+
\centerline{\inference[#1]{#2}{\SubtypeStd{#3}{#4}}}\VSP}
21924+
\def\RuleRawRaw#1#2#3{\centerline{\inference[#1]{#2}{#3}}\VSP}
2192321925
%
2192421926
% ----------------------------------------------------------------------
2192521927
% Omitted rules stated here, with justification for
2192621928
% the omission.
2192721929
% ------------------------------------------------ Right Object 1
2192821930
% Not needed unless algorithmic: Instance of
2192921931
% \SrnLeftVariableBound.
21930-
% \RuleRaw{\SrnRightObjectOne}{Right Object 1}{%
21932+
% \RuleRaw{\SrnRightObjectOne}{%
2193121933
% \code{$X$\,\EXTENDS\,$B$} & \SubtypeStd{B}{\code{Object}}%
2193221934
% }{X}{\code{Object}}
2193321935
% ------------------------------------------------ Right Object 2
2193421936
% Not needed unless algorithmic: Instance of
2193521937
% \SrnLeftPromotedVariable.
21936-
% \RuleRaw{\SrnRightObjectTwo}{}{%
21937-
% \SubtypeStd{S}{\code{Object}}}{\code{$X$\,\&\,$S$}}{\code{Object}}
21938+
% \RuleRaw{\SrnRightObjectTwo}{%
21939+
% \SubtypeStd{S}{\code{Object}}}{%
21940+
% \code{$X$\,\&\,$S$}}{\code{Object}}
2193821941
% ------------------------------------------------ Right Object 3
2193921942
% Not needed unless algorithmic: Derivable from
2194021943
% \SrnLeftFutureOr{} and \SrnRightObjectFour{} (to get
2194121944
% Future<S> <: Object).
21942-
% \RuleRaw{\SrnRightObjectThree}{}{%
21943-
% \SubtypeStd{S}{\code{Object}}}{\code{FutureOr<$S$>}}{\code{Object}}
21945+
% \RuleRaw{\SrnRightObjectThree}{%
21946+
% \SubtypeStd{S}{\code{Object}}}{%
21947+
% \code{FutureOr<$S$>}}{\code{Object}}
2194421948
% ----------------------------------------------------------------------
2194521949
\begin{minipage}[c]{0.49\textwidth}
2194621950
% ------------------------------------------------ Reflexivity
21947-
\Axiom{\SrnReflexivity}{}{T}{T}
21951+
\Axiom{\SrnReflexivity}{T}{T}
2194821952
\ExtraVSP
2194921953
% ------------------------------------------------ Left Top
2195021954
% Non-algorithmic justification for this rule: Needed
2195121955
% to prove dynamic/void <: FutureOr<Object>?.
21952-
\RuleRaw{\SrnLeftTop}{}{%
21956+
\RuleRaw{\SrnLeftTop}{%
2195321957
S \in \{\DYNAMIC, \VOID\}\\
2195421958
\SubtypeStd{\code{Object?}}{T}}{S}{T}
2195521959
% ------------------------------------------------ Left Bottom
21956-
\Axiom{\SrnBottom}{}{\code{Never}}{T}
21960+
\Axiom{\SrnBottom}{\code{Never}}{T}
2195721961
% ------------------------------------------------ Left Null 1
21958-
\Axiom{\SrnNullOne}{}{\code{Null}}{\code{$T$?}}
21962+
\Axiom{\SrnNullOne}{\code{Null}}{\code{$T$?}}
2195921963
\end{minipage}
2196021964
\begin{minipage}[c]{0.49\textwidth}
2196121965
% ------------------------------------------------ Right Top
21962-
\RuleRaw{\SrnRightTop}{}{%
21966+
\RuleRaw{\SrnRightTop}{%
2196321967
T \in \{\code{Object?}, \DYNAMIC, \VOID\}}{S}{T}
2196421968
% ------------------------------------------------ Right Object 4
21965-
\RuleRaw{\SrnRightObjectFour}{}{%
21969+
\RuleRaw{\SrnRightObjectFour}{%
2196621970
$S$\,\not\in \{\code{Null}, \DYNAMIC, \VOID\}\\
2196721971
\mbox{$S$ is not of the form \code{$U$?}, $X$,}\\
2196821972
\mbox{\code{$X$\,\&\,$U$}, %
2196921973
or \code{FutureOr<$U$>}}}{S}{\code{Object}}
2197021974
% ------------------------------------------------ Left Null 2
21971-
\Rule{\SrnNullTwo}{}{\code{Null}}{T}{%
21975+
\Rule{\SrnNullTwo}{\code{Null}}{T}{%
2197221976
\code{Null}}{\code{FutureOr<$T$>}}
2197321977
\end{minipage}
2197421978

2197521979
\begin{minipage}[c]{0.49\textwidth}
2197621980
% ------------------------------------------------ Left FutureOr
21977-
\RuleTwo{\SrnLeftFutureOr}{}{%
21981+
\RuleTwo{\SrnLeftFutureOr}{%
2197821982
\code{Future<$S$>}}{T}{S}{T}{%
2197921983
\code{FutureOr<$S$>}}{T}
2198021984
% ------------------------------------------------ Right Promoted Variable
21981-
\RuleTwo{\SrnRightPromotedVariable}{}{S}{X}{S}{T}{
21985+
\RuleTwo{\SrnRightPromotedVariable}{S}{X}{S}{T}{
2198221986
S}{X \& T}
2198321987
% ------------------------------------------------ Right FutureOr B
21984-
\Rule{\SrnRightFutureOrB}{}{S}{T}{S}{%
21988+
\Rule{\SrnRightFutureOrB}{S}{T}{S}{%
2198521989
\code{FutureOr<$T$>}}
2198621990
% ------------------------------------------------ Right Nullable 2
21987-
\Rule{\SrnRightNullableTwo}{}{S}{\code{Null}}{S}{%
21991+
\Rule{\SrnRightNullableTwo}{S}{\code{Null}}{S}{%
2198821992
\code{$T$?}}
2198921993
% ------------------------------------------------ Left Variable Bound
21990-
\Rule{\SrnLeftVariableBound}{}{\Gamma(X)}{T}{X}{T}
21994+
\Rule{\SrnLeftVariableBound}{\Gamma(X)}{T}{X}{T}
2199121995
\end{minipage}
2199221996
\begin{minipage}[c]{0.49\textwidth}
2199321997
% ------------------------------------------------ Left Nullable
21994-
\RuleTwo{\SrnLeftNullable}{}{S}{T}{\code{Null}}{T}{
21998+
\RuleTwo{\SrnLeftNullable}{S}{T}{\code{Null}}{T}{
2199521999
\code{$S$?}}{T}
2199622000
% ------------------------------------------------ Left Promoted Variable A
21997-
\Axiom{\SrnTypeVariableReflexivityA}{}{X \& S}{X}
22001+
\Axiom{\SrnTypeVariableReflexivityA}{X \& S}{X}
2199822002
% ------------------------------------------------ Right FutureOr A
21999-
\Rule{\SrnRightFutureOrA}{}{S}{%
22003+
\Rule{\SrnRightFutureOrA}{S}{%
2200022004
\code{Future<$T$>}}{S}{\code{FutureOr<$T$>}}
2200122005
% ------------------------------------------------ Right Nullable 1
22002-
\Rule{\SrnRightNullableOne}{}{S}{T}{S}{\code{$T$?}}
22006+
\Rule{\SrnRightNullableOne}{S}{T}{S}{\code{$T$?}}
2200322007
% ------------------------------------------------ Left Promoted Variable B
22004-
\Rule{\SrnLeftPromotedVariable}{}{S}{T}{X \& S}{T}
22008+
\Rule{\SrnLeftPromotedVariable}{S}{T}{X \& S}{T}
2200522009
% ------------------------------------------------ Right Function
22006-
\RuleRaw{\SrnRightFunction}{}{%
22010+
\RuleRaw{\SrnRightFunction}{%
2200722011
T\mbox{ is a function type}}{T}{\FUNCTION}
2200822012
\end{minipage}
2200922013
%
2201022014
\ExtraVSP
2201122015
% ------------------------------------------------ Positional Function Type
22012-
\RuleRawRaw{\SrnPositionalFunctionType}{}{%
22016+
\RuleRawRaw{\SrnPositionalFunctionType}{%
2201322017
\Gamma' = \Gamma\uplus\{X_i\mapsto{}B_i\,|\,1 \leq i \leq s\} &
2201422018
\Subtype{\Gamma'}{S_0}{T_0} \\
2201522019
n_1 \leq n_2 &
@@ -22021,7 +22025,7 @@ \subsection{Subtypes}
2202122025
\end{array}}
2202222026
\ExtraVSP\ExtraVSP
2202322027
% ------------------------------------------------ Named Function Type
22024-
\RuleRawRaw{\SrnNamedFunctionType}{}{
22028+
\RuleRawRaw{\SrnNamedFunctionType}{
2202522029
\Gamma' = \Gamma\uplus\{X_i\mapsto{}B_i\,|\,1 \leq i \leq s\} &
2202622030
\Subtype{\Gamma'}{S_0}{T_0} &
2202722031
\forall j \in 1 .. n\!:\;\Subtype{\Gamma'}{T_j}{S_j} \\
@@ -22035,13 +22039,13 @@ \subsection{Subtypes}
2203522039
%
2203622040
\ExtraVSP
2203722041
% ------------------------------------------------ Covariance
22038-
\RuleRaw{\SrnCovariance}{}{%
22042+
\RuleRaw{\SrnCovariance}{%
2203922043
\mbox{$C$ is an interface type with $s$ type parameters} &
2204022044
\SubtypeStd{S_j}{T_j}\mbox{, for each $j \in 1..s$}}{%
2204122045
\code{$C$<\List{S}{1}{s}>}}{\code{$C$<\List{T}{1}{s}>}}
2204222046
\ExtraVSP
2204322047
% ------------------------------------------------ Superinterface
22044-
\RuleRaw{\SrnSuperinterface}{}{%
22048+
\RuleRaw{\SrnSuperinterface}{%
2204522049
\mbox{$C$ is an interface type with type parameters \List{X}{1}{s}}\\
2204622050
\Superinterface{\code{$D$<\List{T}{1}{m}>}}{C} &
2204722051
\SubtypeStd{[S_1/X_1,\ldots,S_s/X_s]\code{$D$<\List{T}{1}{m}>}}{T}}{%

0 commit comments

Comments
 (0)