Skip to content

Commit d978644

Browse files
committed
fix(dylint): Autofix nova_vm spec header levels
1 parent 63d44fb commit d978644

File tree

98 files changed

+587
-587
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+587
-587
lines changed

nova_vm/src/ecmascript/abstract_operations/type_conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub(crate) fn to_primitive_object<'a, 'gc>(
147147
}
148148
}
149149

150-
/// #### [7.1.1.1 OrdinaryToPrimitive ( O, hint )](https://tc39.es/ecma262/#sec-ordinarytoprimitive)
150+
/// ### [7.1.1.1 OrdinaryToPrimitive ( O, hint )](https://tc39.es/ecma262/#sec-ordinarytoprimitive)
151151
///
152152
/// The abstract operation OrdinaryToPrimitive takes arguments O (an Object)
153153
/// and hint (STRING or NUMBER) and returns either a normal completion
@@ -325,7 +325,7 @@ pub(crate) fn to_number_primitive<'gc>(
325325
}
326326
}
327327

328-
/// ##### [7.1.4.1.1 StringToNumber ( str )](https://tc39.es/ecma262/#sec-stringtonumber)
328+
/// ### [7.1.4.1.1 StringToNumber ( str )](https://tc39.es/ecma262/#sec-stringtonumber)
329329
///
330330
/// The abstract operation StringToNumber takes argument str (a String) and
331331
/// returns a Number.

nova_vm/src/ecmascript/builtins/arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use crate::{
4444

4545
use super::{ScopedArgumentsList, ordinary::shape::ObjectShape};
4646

47-
/// #### [10.4.4.6 CreateUnmappedArgumentsObject ( argumentsList )](https://tc39.es/ecma262/#sec-createunmappedargumentsobject)
47+
/// ### [10.4.4.6 CreateUnmappedArgumentsObject ( argumentsList )](https://tc39.es/ecma262/#sec-createunmappedargumentsobject)
4848
///
4949
/// The abstract operation CreateUnmappedArgumentsObject takes argument
5050
/// argumentsList (a List of ECMAScript language values) and returns an

nova_vm/src/ecmascript/builtins/array/abstract_operations.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub(crate) fn array_create<'a>(
9191
Ok(agent.heap.create(data))
9292
}
9393

94-
/// #### [10.4.2.3 ArraySpeciesCreate ( originalArray, length )](https://tc39.es/ecma262/#sec-arrayspeciescreate)
94+
/// ### [10.4.2.3 ArraySpeciesCreate ( originalArray, length )](https://tc39.es/ecma262/#sec-arrayspeciescreate)
9595
///
9696
/// The abstract operation ArraySpeciesCreate takes arguments originalArray (an
9797
/// Object) and length (a non-negative integer) and returns either a normal
@@ -190,7 +190,7 @@ pub(crate) fn array_species_create<'a>(
190190
)
191191
}
192192

193-
/// #### [10.4.2.4 ArraySetLength ( A, Desc )](https://tc39.es/ecma262/#sec-arraysetlength)
193+
/// ### [10.4.2.4 ArraySetLength ( A, Desc )](https://tc39.es/ecma262/#sec-arraysetlength)
194194
///
195195
/// The abstract operation ArraySetLength takes arguments A (an Array) and Desc (a Property Descriptor) and returns either a normal completion containing a Boolean or a throw completion.
196196
pub(crate) fn array_set_length<'a>(

nova_vm/src/ecmascript/builtins/array_buffer/abstract_operations.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub(crate) fn allocate_array_buffer<'a>(
8989
Ok(obj)
9090
}
9191

92-
/// #### [25.1.3.3 IsDetachedBuffer ( arrayBuffer )](https://tc39.es/ecma262/#sec-isdetachedbuffer)
92+
/// ### [25.1.3.3 IsDetachedBuffer ( arrayBuffer )](https://tc39.es/ecma262/#sec-isdetachedbuffer)
9393
///
9494
/// The abstract operation IsDetachedBuffer takes argument *arrayBuffer* (an
9595
/// ArrayBuffer or a SharedArrayBuffer) and returns a Boolean.
@@ -131,7 +131,7 @@ pub(crate) fn detach_array_buffer<'a>(
131131
Ok(())
132132
}
133133

134-
/// #### [25.1.3.6 GetArrayBufferMaxByteLengthOption ( options )](https://tc39.es/ecma262/#sec-getarraybuffermaxbytelengthoption)
134+
/// ### [25.1.3.6 GetArrayBufferMaxByteLengthOption ( options )](https://tc39.es/ecma262/#sec-getarraybuffermaxbytelengthoption)
135135
///
136136
/// The abstract operation GetArrayBufferMaxByteLengthOption takes argument
137137
/// options (an ECMAScript language value) and returns either a normal
@@ -166,7 +166,7 @@ pub(crate) fn get_array_buffer_max_byte_length_option<'a>(
166166
Ok(Some(to_index(agent, max_byte_length.unbind(), gc)? as u64))
167167
}
168168

169-
/// #### [25.1.3.8 IsFixedLengthArrayBuffer ( arrayBuffer )](https://tc39.es/ecma262/#sec-isfixedlengtharraybuffer)
169+
/// ### [25.1.3.8 IsFixedLengthArrayBuffer ( arrayBuffer )](https://tc39.es/ecma262/#sec-isfixedlengtharraybuffer)
170170
///
171171
/// The abstract operation IsFixedLengthArrayBuffer takes argument
172172
/// arrayBuffer (an ArrayBuffer or a SharedArrayBuffer) and returns a
@@ -178,7 +178,7 @@ pub(crate) fn is_fixed_length_array_buffer(agent: &Agent, array_buffer: AnyArray
178178
!array_buffer.is_resizable(agent)
179179
}
180180

181-
/// #### [25.1.3.13 RawBytesToNumeric ( type, rawBytes, isLittleEndian )](https://tc39.es/ecma262/#sec-rawbytestonumeric)
181+
/// ### [25.1.3.13 RawBytesToNumeric ( type, rawBytes, isLittleEndian )](https://tc39.es/ecma262/#sec-rawbytestonumeric)
182182
///
183183
/// The abstract operation RawBytesToNumeric takes arguments type (a
184184
/// TypedArray element type), rawBytes (a List of byte values), and
@@ -213,7 +213,7 @@ pub(crate) fn raw_bytes_to_numeric<'a, T: Viewable>(
213213
}
214214
}
215215

216-
/// #### [25.1.3.14 GetRawBytesFromSharedBlock ( block, byteIndex, type, isTypedArray, order )](https://tc39.es/ecma262/#sec-getrawbytesfromsharedblock)
216+
/// ### [25.1.3.14 GetRawBytesFromSharedBlock ( block, byteIndex, type, isTypedArray, order )](https://tc39.es/ecma262/#sec-getrawbytesfromsharedblock)
217217
///
218218
/// The abstract operation GetRawBytesFromSharedBlock takes arguments block
219219
/// (a Shared Data Block), byteIndex (a non-negative integer), type (a
@@ -312,7 +312,7 @@ pub(crate) fn get_value_from_buffer<'a, T: Viewable>(
312312
raw_bytes_to_numeric::<T>(agent, raw_value, is_little_endian, gc)
313313
}
314314

315-
/// #### [25.1.3.16 NumericToRawBytes ( type, value, isLittleEndian )](https://tc39.es/ecma262/#sec-numerictorawbytes)
315+
/// ### [25.1.3.16 NumericToRawBytes ( type, value, isLittleEndian )](https://tc39.es/ecma262/#sec-numerictorawbytes)
316316
///
317317
/// The abstract operation NumericToRawBytes takes arguments type (a
318318
/// TypedArray element type), value (a Number or a BigInt), and
@@ -414,7 +414,7 @@ pub(crate) fn set_value_in_buffer<T: Viewable>(
414414
// 10. Return UNUSED.
415415
}
416416

417-
/// #### [25.1.3.18 GetModifySetValueInBuffer ( arrayBuffer, byteIndex, type, value, op )](https://tc39.es/ecma262/#sec-getmodifysetvalueinbuffer)
417+
/// ### [25.1.3.18 GetModifySetValueInBuffer ( arrayBuffer, byteIndex, type, value, op )](https://tc39.es/ecma262/#sec-getmodifysetvalueinbuffer)
418418
///
419419
/// The abstract operation GetModifySetValueInBuffer takes arguments
420420
/// arrayBuffer (an ArrayBuffer or a SharedArrayBuffer), byteIndex (a

nova_vm/src/ecmascript/builtins/bound_function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl<'a> IntoValue<'a> for BoundFunction<'a> {
5959
}
6060
}
6161

62-
/// #### [10.4.1.3 BoundFunctionCreate ( targetFunction, boundThis, boundArgs )](https://tc39.es/ecma262/#sec-boundfunctioncreate)
62+
/// ### [10.4.1.3 BoundFunctionCreate ( targetFunction, boundThis, boundArgs )](https://tc39.es/ecma262/#sec-boundfunctioncreate)
6363
///
6464
/// The abstract operation BoundFunctionCreate takes arguments targetFunction
6565
/// (a function object), boundThis (an ECMAScript language value), and

nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl AsyncGeneratorState<'_> {
495495
}
496496
}
497497

498-
/// #### [27.6.3.1 AsyncGeneratorRequest Records](https://tc39.es/ecma262/#sec-asyncgeneratorrequest-records)
498+
/// ### [27.6.3.1 AsyncGeneratorRequest Records](https://tc39.es/ecma262/#sec-asyncgeneratorrequest-records)
499499
///
500500
/// An AsyncGeneratorRequest is a Record value used to store information about
501501
/// how an async generator should be resumed and contains capabilities for

nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects/async_generator_abstract_operations.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use super::{
3434
AsyncGeneratorRequestCompletion, AsyncGeneratorState,
3535
};
3636

37-
/// #### [27.6.3.3 AsyncGeneratorValidate ( generator, generatorBrand )](https://tc39.es/ecma262/#sec-asyncgeneratorvalidate)
37+
/// ### [27.6.3.3 AsyncGeneratorValidate ( generator, generatorBrand )](https://tc39.es/ecma262/#sec-asyncgeneratorvalidate)
3838
///
3939
/// The abstract operation AsyncGeneratorValidate takes arguments generator (an
4040
/// ECMAScript language value) and generatorBrand (a String or empty) and
@@ -61,7 +61,7 @@ pub(super) fn async_generator_validate<'a>(
6161
}
6262
}
6363

64-
/// #### [27.6.3.4 AsyncGeneratorEnqueue ( generator, completion, promiseCapability )](https://tc39.es/ecma262/#sec-asyncgeneratorenqueue)
64+
/// ### [27.6.3.4 AsyncGeneratorEnqueue ( generator, completion, promiseCapability )](https://tc39.es/ecma262/#sec-asyncgeneratorenqueue)
6565
///
6666
/// The abstract operation AsyncGeneratorEnqueue takes arguments generator (an
6767
/// AsyncGenerator), completion (a Completion Record), and promiseCapability
@@ -144,7 +144,7 @@ fn async_generator_complete_step(
144144
// 8. Return unused.
145145
}
146146

147-
/// #### [27.6.3.6 AsyncGeneratorResume ( generator, completion )](https://tc39.es/ecma262/#sec-asyncgeneratorresume)
147+
/// ### [27.6.3.6 AsyncGeneratorResume ( generator, completion )](https://tc39.es/ecma262/#sec-asyncgeneratorresume)
148148
///
149149
/// The abstract operation AsyncGeneratorResume takes arguments generator (an
150150
/// AsyncGenerator) and completion (a Completion Record) and returns unused.
@@ -287,7 +287,7 @@ fn async_generator_perform_await(
287287
inner_promise_then(agent, promise, handler, handler, None, gc.nogc());
288288
}
289289

290-
/// #### [27.6.3.7 AsyncGeneratorUnwrapYieldResumption ( resumptionValue )](https://tc39.es/ecma262/#sec-asyncgeneratorunwrapyieldresumption)
290+
/// ### [27.6.3.7 AsyncGeneratorUnwrapYieldResumption ( resumptionValue )](https://tc39.es/ecma262/#sec-asyncgeneratorunwrapyieldresumption)
291291
///
292292
/// The abstract operation AsyncGeneratorUnwrapYieldResumption takes argument
293293
/// resumptionValue (a Completion Record) and returns either a normal
@@ -329,7 +329,7 @@ fn async_generator_unwrap_yield_resumption(
329329
resume_handle_result(agent, execution_result.unbind(), generator, gc);
330330
}
331331

332-
/// #### [27.6.3.8 AsyncGeneratorYield ( value )](https://tc39.es/ecma262/#sec-asyncgeneratoryield)
332+
/// ### [27.6.3.8 AsyncGeneratorYield ( value )](https://tc39.es/ecma262/#sec-asyncgeneratoryield)
333333
///
334334
/// The abstract operation AsyncGeneratorYield takes argument value (an
335335
/// ECMAScript language value) and returns either a normal completion
@@ -398,7 +398,7 @@ pub(super) fn async_generator_yield(
398398
}
399399
}
400400

401-
/// #### [27.6.3.9 AsyncGeneratorAwaitReturn ( generator )](https://tc39.es/ecma262/#sec-asyncgeneratorawaitreturn)
401+
/// ### [27.6.3.9 AsyncGeneratorAwaitReturn ( generator )](https://tc39.es/ecma262/#sec-asyncgeneratorawaitreturn)
402402
///
403403
/// The abstract operation AsyncGeneratorAwaitReturn takes argument generator
404404
/// (an AsyncGenerator) and returns unused.
@@ -500,7 +500,7 @@ pub(crate) fn async_generator_await_return_on_rejected(
500500
// e. Return undefined.
501501
}
502502

503-
/// #### [27.6.3.10 AsyncGeneratorDrainQueue ( generator )](https://tc39.es/ecma262/#sec-asyncgeneratordrainqueue)
503+
/// ### [27.6.3.10 AsyncGeneratorDrainQueue ( generator )](https://tc39.es/ecma262/#sec-asyncgeneratordrainqueue)
504504
///
505505
/// The abstract operation AsyncGeneratorDrainQueue takes argument generator
506506
/// (an AsyncGenerator) and returns unused. It drains the generator's

nova_vm/src/ecmascript/builtins/control_abstraction_objects/async_generator_objects/async_generator_prototype.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl Builtin for AsyncGeneratorPrototypeThrow {
5858
}
5959

6060
impl AsyncGeneratorPrototype {
61-
/// #### [27.6.1.2 %AsyncGeneratorPrototype%.next ( value )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-next)
61+
/// ### [27.6.1.2 %AsyncGeneratorPrototype%.next ( value )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-next)
6262
fn next<'gc>(
6363
agent: &mut Agent,
6464
this_value: Value,
@@ -117,7 +117,7 @@ impl AsyncGeneratorPrototype {
117117
Ok(unsafe { promise.take(agent).into_value() })
118118
}
119119

120-
/// #### [27.6.1.3 %AsyncGeneratorPrototype%.return ( value )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-return)
120+
/// ### [27.6.1.3 %AsyncGeneratorPrototype%.return ( value )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-return)
121121
fn r#return<'gc>(
122122
agent: &mut Agent,
123123
this_value: Value,
@@ -176,7 +176,7 @@ impl AsyncGeneratorPrototype {
176176
}
177177
}
178178

179-
/// #### [27.6.1.4 %AsyncGeneratorPrototype%.throw ( exception )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-throw)
179+
/// ### [27.6.1.4 %AsyncGeneratorPrototype%.throw ( exception )](https://tc39.es/ecma262/#sec-asyncgenerator-prototype-throw)
180180
fn throw<'gc>(
181181
agent: &mut Agent,
182182
this_value: Value,

nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_objects.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl Generator<'_> {
3737
self.0.into_index()
3838
}
3939

40-
///#### [27.5.3.3 GeneratorResume ( generator, value, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresume)
40+
///### [27.5.3.3 GeneratorResume ( generator, value, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresume)
4141
pub(crate) fn resume<'a>(
4242
self,
4343
agent: &mut Agent,
@@ -156,7 +156,7 @@ impl Generator<'_> {
156156
}
157157
}
158158

159-
///#### [27.5.3.4 GeneratorResumeAbrupt ( generator, abruptCompletion, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresumeabrupt)
159+
///### [27.5.3.4 GeneratorResumeAbrupt ( generator, abruptCompletion, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresumeabrupt)
160160
/// NOTE: This method only accepts throw completions.
161161
pub(crate) fn resume_throw<'a>(
162162
self,
@@ -265,7 +265,7 @@ impl Generator<'_> {
265265
}
266266
}
267267

268-
///#### [27.5.3.4 GeneratorResumeAbrupt ( generator, abruptCompletion, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresumeabrupt)
268+
///### [27.5.3.4 GeneratorResumeAbrupt ( generator, abruptCompletion, generatorBrand )](https://tc39.es/ecma262/#sec-generatorresumeabrupt)
269269
/// NOTE: This method only accepts return completions.
270270
pub(crate) fn resume_return<'a>(
271271
self,

nova_vm/src/ecmascript/builtins/control_abstraction_objects/generator_prototype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl GeneratorPrototype {
6464
Ok(generator.resume(agent, arguments.get(0), gc)?.into_value())
6565
}
6666

67-
/// #### [27.5.1.3 %GeneratorPrototype%.return ( value )](https://tc39.es/ecma262/#sec-generator.prototype.return)
67+
/// ### [27.5.1.3 %GeneratorPrototype%.return ( value )](https://tc39.es/ecma262/#sec-generator.prototype.return)
6868
fn r#return<'gc>(
6969
agent: &mut Agent,
7070
this_value: Value,

0 commit comments

Comments
 (0)