Skip to content

Commit 617c96a

Browse files
committed
Adjust dart.sty to change like specify_null_safety_sep21
1 parent a1330dd commit 617c96a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

specification/dart.sty

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,12 @@
173173
\newcommand{\id}{\metavar{id}}
174174
\newcommand{\op}{\metavar{op}}
175175

176+
% Used in margin to indicate that a term is being defined here.
177+
\newcommand{\IndexMarker}{\ensuremath{^\vartriangle}}
178+
176179
% Used for defining occurrence of phrase, with customized index entry.
177180
\newcommand{\IndexCustom}[2]{%
178-
\leavevmode\marginpar{\ensuremath{_{^\vartriangle}}}\emph{#1}\index{#2}}
181+
\leavevmode\marginpar{\IndexMarker}\emph{#1}\index{#2}}
179182

180183
% Used for the defining occurrence of a local symbol.
181184
\newcommand{\DefineSymbol}[1]{%
@@ -196,7 +199,7 @@
196199

197200
% Same appearance, but not adding an entry to the index.
198201
\newcommand{\NoIndex}[1]{%
199-
\leavevmode\marginpar{\ensuremath{_{^\vartriangle}}}\emph{#1}}
202+
\leavevmode\marginpar{\IndexMarker}\emph{#1}}
200203

201204
% Mark a compile-time error in the margin.
202205
\newcommand{\Error}[1]{%
@@ -470,16 +473,14 @@
470473
\newcommand{\SubtypeStd}[2]{\Subtype{\Delta}{#1}{#2}}
471474
% Subtype judgment where the environment is omitted (NE: "no environment").
472475
\newcommand{\SubtypeNE}[2]{\ensuremath{{#1}\,<:\,{#2}}}
476+
\newcommand{\MutualSubtype}[3]{\ensuremath{{#1}\vdash{#2}\,<:>\,{#3}}}
477+
\newcommand{\MutualSubtypeStd}[2]{\MutualSubtype{\Delta}{#1}{#2}}
478+
\newcommand{\MutualSubtypeNE}[2]{\ensuremath{{#1}\,<:>\,{#2}}}
473479

474480
% Judgment expressing that a supertype relation exists.
475481
\newcommand{\Supertype}[3]{\ensuremath{{#1}\vdash{#2}\,:>\,{#3}}}
476482
\newcommand{\SupertypeStd}[2]{\Supertype{\Delta}{#1}{#2}}
477483

478-
% Judgment expressing that a subtype and a supertype relation exist.
479-
\newcommand{\MutualSubtype}[3]{\ensuremath{{#1}\vdash{#2}\,<:>\,{#3}}}
480-
\newcommand{\MutualSubtypeStd}[2]{\MutualSubtype{\Delta}{#1}{#2}}
481-
\newcommand{\MutualSubtypeNE}[2]{\ensuremath{{#1}\,<:>\,{#2}}}
482-
483484
% Semantic function delivering the superinterfaces of a class.
484485
\newcommand{\Superinterfaces}[1]{\ensuremath{\metavar{Superinterfaces}({#1})}}
485486
\newcommand{\Superinterface}[2]{{#1}\in\Superinterfaces{#2}}

0 commit comments

Comments
 (0)