SourceRange.h 315 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2020, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Types.h>
  8. namespace JS {
  9. struct Position {
  10. size_t line { 0 };
  11. size_t column { 0 };
  12. };
  13. struct SourceRange {
  14. StringView filename;
  15. Position start;
  16. Position end;
  17. };
  18. }