Skip to content

Commit a1a76e0

Browse files
committed
Cross-ref Temporal overrides by section number
1 parent d403909 commit a1a76e0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

biblio.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"type": "clause",
27-
"number": "Calendar Date Records",
27+
"number": "Temporal, 12.2.1",
2828
"id": "sec-temporal-calendar-date-records"
2929
},
3030
{
@@ -38,8 +38,8 @@
3838
"id": "sec-temporal-calendardateuntil"
3939
},
4040
{
41-
"type": "op",
42-
"aoid": "TemporalCalendarExtraFields",
41+
"type": "clause",
42+
"number": "Temporal, 12.2.22",
4343
"id": "sec-temporal-calendarextrafields"
4444
},
4545
{
@@ -48,8 +48,8 @@
4848
"id": "table-temporal-calendar-fields-record-fields"
4949
},
5050
{
51-
"type": "op",
52-
"aoid": "TemporalCalendarFieldKeysToIgnore",
51+
"type": "clause",
52+
"number": "Temporal, 12.2.23",
5353
"id": "sec-temporal-calendarfieldkeystoignore"
5454
},
5555
{

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4492,7 +4492,7 @@ <h1><span class="secnum">4.1.8</span> Calendar Date Records</h1>
44924492
Calendar Date Records are produced by the abstract operation <emu-xref aoid="CalendarISOToDate"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarisotodate">CalendarISOToDate</a></emu-xref>.
44934493
</p>
44944494
<p>Calendar Date Records have the fields listed in <emu-xref href="#table-temporal-calendar-date-record-fields" id="_ref_9"><a href="#table-temporal-calendar-date-record-fields">Table 5</a></emu-xref>.</p>
4495-
<p>This definition supersedes the one in <emu-xref href="#sec-temporal-calendar-date-records"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendar-date-records">Calendar Date Records</a></emu-xref>.</p>
4495+
<p>This definition supersedes the one in <emu-xref href="#sec-temporal-calendar-date-records"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendar-date-records">Temporal, 12.2.1</a></emu-xref>.</p>
44964496
<emu-table id="table-temporal-calendar-date-record-fields" caption="Calendar Date Record Fields"><figure><figcaption>Table 5: <emu-xref href="#sup-temporal-calendar-date-records" id="_ref_20"><a href="#sup-temporal-calendar-date-records">Calendar Date Record</a></emu-xref> Fields</figcaption>
44974497
<table class="real-table">
44984498
<tbody><tr>
@@ -4659,7 +4659,7 @@ <h1><span class="secnum">4.1.11</span> CalendarDateToISO ( <var>calendar</var>,
46594659
<emu-clause id="sup-temporal-calendarextrafields" type="implementation-defined abstract operation" aoid="CalendarExtraFields">
46604660
<h1><span class="secnum">4.1.12</span> CalendarExtraFields ( <var>calendar</var>, <var>fields</var> )</h1>
46614661
<p>The <emu-xref href="#implementation-defined"><a href="https://tc39.es/ecma262/#implementation-defined">implementation-defined</a></emu-xref> abstract operation CalendarExtraFields takes arguments <var>calendar</var> (a <emu-xref href="#sec-ecma402-calendar-types" id="_ref_32"><a href="#sec-ecma402-calendar-types">calendar type</a></emu-xref>) and <var>fields</var> (a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of values from the Enumeration Key column of <emu-xref href="#table-temporal-calendar-fields-record-fields"><a href="https://tc39.es/proposal-temporal/#table-temporal-calendar-fields-record-fields">Table 19</a></emu-xref>) and returns a <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref> of values from the Enumeration Key column of <emu-xref href="#table-temporal-calendar-fields-record-fields"><a href="https://tc39.es/proposal-temporal/#table-temporal-calendar-fields-record-fields">Table 19</a></emu-xref>. It characterizes calendar-specific fields that are relevant for the provided <var>fields</var> in the built-in calendar identified by <var>calendar</var>.</p>
4662-
<p>This definition supersedes the definition provided in <emu-xref aoid="TemporalCalendarExtraFields"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarextrafields">TemporalCalendarExtraFields</a></emu-xref>.</p>
4662+
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarextrafields"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarextrafields">Temporal, 12.2.22</a></emu-xref>.</p>
46634663
<emu-alg><ol><li>If <var>fields</var> contains an element equal to <emu-const>year</emu-const> and <emu-xref aoid="CalendarSupportsEra" id="_ref_33"><a href="#sec-temporal-calendarsupportsera">CalendarSupportsEra</a></emu-xref>(<var>calendar</var>) is <emu-val>true</emu-val>, then<ol><li>Append <emu-const>era</emu-const> and <emu-const>era-year</emu-const> to <var>fields</var>.</li></ol></li><li>Return <var>fields</var>.</li></ol></emu-alg>
46644664
</emu-clause>
46654665
@@ -4669,7 +4669,7 @@ <h1><span class="secnum">4.1.13</span> CalendarFieldKeysToIgnore ( <var>calendar
46694669
It determines which calendar date fields changing any of the fields named in <var>keys</var> can potentially conflict with or invalidate, for the given <var>calendar</var>.
46704670
A field always invalidates at least itself.
46714671
</p>
4672-
<p>This definition supersedes the definition provided in <emu-xref aoid="TemporalCalendarFieldKeysToIgnore"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarfieldkeystoignore">TemporalCalendarFieldKeysToIgnore</a></emu-xref>.</p>
4672+
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarfieldkeystoignore"><a href="https://tc39.es/proposal-temporal/#sec-temporal-calendarfieldkeystoignore">Temporal, 12.2.23</a></emu-xref>.</p>
46734673
<emu-alg><ol><li>Let <var>ignoredKeys</var> be an empty <emu-xref href="#sec-list-and-record-specification-type"><a href="https://tc39.es/ecma262/#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>For each element <var>key</var> of <var>keys</var>, do<ol><li>If <var>key</var> is <emu-const>month</emu-const>, append <emu-const>month-code</emu-const> to <var>ignoredKeys</var>.</li><li>Else if <var>key</var> is <emu-const>month-code</emu-const>, append <emu-const>month</emu-const> to <var>ignoredKeys</var>.</li><li>If <var>key</var> is one of <emu-const>era</emu-const>, <emu-const>era-year</emu-const>, or <emu-const>year</emu-const> and <emu-xref aoid="CalendarSupportsEra" id="_ref_35"><a href="#sec-temporal-calendarsupportsera">CalendarSupportsEra</a></emu-xref>(<var>calendar</var>) is <emu-val>true</emu-val>, then<ol><li>Append <emu-const>era</emu-const>, <emu-const>era-year</emu-const>, and <emu-const>year</emu-const> to <var>ignoredKeys</var>.</li></ol></li><li>Else,<ol><li>Append <var>key</var> to <var>ignoredKeys</var>.</li></ol></li></ol></li><li>NOTE: While <var>ignoredKeys</var> can have duplicate elements, this is not intended to be meaningful. This specification only checks whether particular keys are or are not members of the list.</li><li>Return <var>ignoredKeys</var>.</li></ol></emu-alg>
46744674
</emu-clause>
46754675
</emu-clause>

spec.emu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ contributors: Google, Ecma International
963963
<dt>description</dt>
964964
<dd>It characterizes calendar-specific fields that are relevant for the provided _fields_ in the built-in calendar identified by _calendar_.</dd>
965965
</dl>
966-
<p>This definition supersedes the definition provided in TemporalCalendarExtraFields.</p>
966+
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarextrafields"></emu-xref>.</p>
967967
<emu-alg>
968968
1. If _fields_ contains an element equal to ~year~ and CalendarSupportsEra(_calendar_) is *true*, then
969969
1. Append ~era~ and ~era-year~ to _fields_.
@@ -985,7 +985,7 @@ contributors: Google, Ecma International
985985
A field always invalidates at least itself.
986986
</dd>
987987
</dl>
988-
<p>This definition supersedes the definition provided in TemporalCalendarFieldKeysToIgnore.</p>
988+
<p>This definition supersedes the definition provided in <emu-xref href="#sec-temporal-calendarfieldkeystoignore"></emu-xref>.</p>
989989
<emu-alg>
990990
1. Let _ignoredKeys_ be an empty List.
991991
1. For each element _key_ of _keys_, do

0 commit comments

Comments
 (0)