Skip to content

Commit 7221ed3

Browse files
committed
Rebase
1 parent 7cc97e4 commit 7221ed3

File tree

2 files changed

+482
-347
lines changed

2 files changed

+482
-347
lines changed

specification/dart.sty

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -310,26 +310,28 @@
310310

311311
% Used to specify function type parameter lists with named optionals.
312312
% Arguments: Parameter type, number of required parameters,
313-
% name of optional parameters, number of optional parameters.
314-
\newcommand{\FunctionTypeNamedArguments}[4]{%
315-
\List{#1}{1}{#2},\ \{\TripleList{r}{#1}{#3}{{#2}+1}{{#2}+{#4}}\}}
313+
% name of optional parameters, number of optional parameters,
314+
% name of `required` symbol.
315+
\newcommand{\FunctionTypeNamedArguments}[5]{%
316+
\List{#1}{1}{#2},\ \{\TripleList{#5}{#1}{#3}{{#2}+1}{{#2}+{#4}}\}}
316317

317318
\newcommand{\FunctionTypeNamedArgumentsStd}{%
318-
\FunctionTypeNamedArguments{T}{n}{x}{k}}
319+
\FunctionTypeNamedArguments{T}{n}{x}{k}{r}}
319320

320321
% Used to specify function types with named parameters:
321322
% Arguments: Return type, spacer, type parameter name, bound name,
322323
% number of type parameters, parameter type, number of required parameters,
323-
% name of optional parameters, number of optional parameters.
324+
% name of optional parameters, number of optional parameters,
325+
% name of `required` symbol.
324326
\newcommand{\FunctionTypeNamed}[9]{%
325327
\FunctionType{#1}{#2}{#3}{#4}{#5}{\\
326-
\mbox{}\qquad\FunctionTypeNamedArguments{#6}{#7}{#8}{#9}}}
328+
\mbox{}\qquad\FunctionTypeNamedArguments{#6}{#7}{#8}{#9}{#10}}}
327329

328330
% Same as \FunctionType except suitable for inline usage, hence omitting
329331
% the spacer argument.
330-
\newcommand{\RawFunctionTypeNamed}[8]{%
332+
\newcommand{\RawFunctionTypeNamed}[9]{%
331333
\RawFunctionType{#1}{#2}{#3}{#4}{%
332-
\FunctionTypeNamedArguments{#5}{#6}{#7}{#8}}}
334+
\FunctionTypeNamedArguments{#5}{#6}{#7}{#8}{#9}}}
333335

334336
% Used to specify function types with no optional parameters:
335337
% Arguments: Return type, spacer, type parameter name, bound name,
@@ -345,10 +347,10 @@
345347
\RawFunctionTypePositional{#1}{X}{B}{s}{T}{n}{k}}
346348

347349
\newcommand{\FunctionTypeNamedStd}[1]{%
348-
\FunctionTypeNamed{#1}{ }{X}{B}{s}{T}{n}{x}{k}}
350+
\FunctionTypeNamed{#1}{ }{X}{B}{s}{T}{n}{x}{k}{r}}
349351

350352
\newcommand{\RawFunctionTypeNamedStd}[1]{%
351-
\RawFunctionTypeNamed{#1}{X}{B}{s}{T}{n}{x}{k}}
353+
\RawFunctionTypeNamed{#1}{X}{B}{s}{T}{n}{x}{k}{r}}
352354

353355
\newcommand{\FunctionTypeAllRequiredStd}[1]{%
354356
\FunctionTypeAllRequired{#1}{ }{X}{B}{s}{T}{n}}
@@ -357,10 +359,10 @@
357359
\FunctionTypePositional{#1}{\\}{X}{B}{s}{T}{n}{k}}
358360

359361
\newcommand{\FunctionTypeNamedStdCr}[1]{%
360-
\FunctionTypeNamed{#1}{\\}{X}{B}{s}{T}{n}{x}{k}}
362+
\FunctionTypeNamed{#1}{\\}{X}{B}{s}{T}{n}{x}{k}{r}}
361363

362364
\newcommand{\FunctionTypeNamedStdArgCr}[1]{%
363-
\FunctionTypeNamedArgCr{#1}{ }{X}{B}{s}{T}{n}{x}{k}}
365+
\FunctionTypeNamedArgCr{#1}{ }{X}{B}{s}{T}{n}{x}{k}{r}}
364366

365367
\newcommand{\FunctionTypeAllRequiredStdCr}[1]{%
366368
\FunctionTypeAllRequired{#1}{\\}{X}{B}{s}{T}{n}}
@@ -376,13 +378,13 @@
376378

377379
% Judgment expressing that a subtype relation exists.
378380
\newcommand{\Subtype}[3]{\ensuremath{{#1}\vdash{#2}\,<:\,{#3}}}
379-
\newcommand{\SubtypeStd}[2]{\Subtype{\Gamma}{#1}{#2}}
381+
\newcommand{\SubtypeStd}[2]{\Subtype{\Delta}{#1}{#2}}
380382
% Subtype judgment where the environment is omitted (NE: "no environment").
381383
\newcommand{\SubtypeNE}[2]{\ensuremath{{#1}\,<:\,{#2}}}
382384

383385
% Judgment expressing that a supertype relation exists.
384386
\newcommand{\Supertype}[3]{\ensuremath{{#1}\vdash{#2}\,:>\,{#3}}}
385-
\newcommand{\SupertypeStd}[2]{\Supertype{\Gamma}{#1}{#2}}
387+
\newcommand{\SupertypeStd}[2]{\Supertype{\Delta}{#1}{#2}}
386388

387389
% Semantic function delivering the superinterfaces of a class.
388390
\newcommand{\Superinterfaces}[1]{\ensuremath{\metavar{Superinterfaces}({#1})}}

0 commit comments

Comments
 (0)