Skip to content

Commit 5f535c8

Browse files
committed
Rebase
1 parent 5eb637a commit 5f535c8

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
@@ -311,26 +311,28 @@
311311

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

318319
\newcommand{\FunctionTypeNamedArgumentsStd}{%
319-
\FunctionTypeNamedArguments{T}{n}{x}{k}}
320+
\FunctionTypeNamedArguments{T}{n}{x}{k}{r}}
320321

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

329331
% Same as \FunctionType except suitable for inline usage, hence omitting
330332
% the spacer argument.
331-
\newcommand{\RawFunctionTypeNamed}[8]{%
333+
\newcommand{\RawFunctionTypeNamed}[9]{%
332334
\RawFunctionType{#1}{#2}{#3}{#4}{%
333-
\FunctionTypeNamedArguments{#5}{#6}{#7}{#8}}}
335+
\FunctionTypeNamedArguments{#5}{#6}{#7}{#8}{#9}}}
334336

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

348350
\newcommand{\FunctionTypeNamedStd}[1]{%
349-
\FunctionTypeNamed{#1}{ }{X}{B}{s}{T}{n}{x}{k}}
351+
\FunctionTypeNamed{#1}{ }{X}{B}{s}{T}{n}{x}{k}{r}}
350352

351353
\newcommand{\RawFunctionTypeNamedStd}[1]{%
352-
\RawFunctionTypeNamed{#1}{X}{B}{s}{T}{n}{x}{k}}
354+
\RawFunctionTypeNamed{#1}{X}{B}{s}{T}{n}{x}{k}{r}}
353355

354356
\newcommand{\FunctionTypeAllRequiredStd}[1]{%
355357
\FunctionTypeAllRequired{#1}{ }{X}{B}{s}{T}{n}}
@@ -358,10 +360,10 @@
358360
\FunctionTypePositional{#1}{\\}{X}{B}{s}{T}{n}{k}}
359361

360362
\newcommand{\FunctionTypeNamedStdCr}[1]{%
361-
\FunctionTypeNamed{#1}{\\}{X}{B}{s}{T}{n}{x}{k}}
363+
\FunctionTypeNamed{#1}{\\}{X}{B}{s}{T}{n}{x}{k}{r}}
362364

363365
\newcommand{\FunctionTypeNamedStdArgCr}[1]{%
364-
\FunctionTypeNamedArgCr{#1}{ }{X}{B}{s}{T}{n}{x}{k}}
366+
\FunctionTypeNamedArgCr{#1}{ }{X}{B}{s}{T}{n}{x}{k}{r}}
365367

366368
\newcommand{\FunctionTypeAllRequiredStdCr}[1]{%
367369
\FunctionTypeAllRequired{#1}{\\}{X}{B}{s}{T}{n}}
@@ -377,13 +379,13 @@
377379

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

384386
% Judgment expressing that a supertype relation exists.
385387
\newcommand{\Supertype}[3]{\ensuremath{{#1}\vdash{#2}\,:>\,{#3}}}
386-
\newcommand{\SupertypeStd}[2]{\Supertype{\Gamma}{#1}{#2}}
388+
\newcommand{\SupertypeStd}[2]{\Supertype{\Delta}{#1}{#2}}
387389

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

0 commit comments

Comments
 (0)