mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
We were spending way too much time converting unrealized source ranges into line/column pairs on real web content. This improves JS parsing speed on x.com by 1.13x
20 lines
253 B
C++
20 lines
253 B
C++
/*
|
|
* Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Types.h>
|
|
|
|
namespace JS {
|
|
|
|
struct Position {
|
|
u32 line { 0 };
|
|
u32 column { 0 };
|
|
u32 offset { 0 };
|
|
};
|
|
|
|
}
|