summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/SourceRange.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/SourceRange.h')
-rw-r--r--Userland/Libraries/LibJS/SourceRange.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/SourceRange.h b/Userland/Libraries/LibJS/SourceRange.h
index 71f3d2ba52..67e23225b1 100644
--- a/Userland/Libraries/LibJS/SourceRange.h
+++ b/Userland/Libraries/LibJS/SourceRange.h
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
+ * Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@@ -21,7 +22,7 @@ struct Position {
struct SourceRange {
[[nodiscard]] bool contains(Position const& position) const { return position.offset <= end.offset && position.offset >= start.offset; }
- NonnullRefPtr<SourceCode> code;
+ NonnullRefPtr<SourceCode const> code;
Position start;
Position end;