dawn-cmake/src
Ben Clayton 5bee67fced Add File & Range information to tint::Source
This is the first step in improving the error messages produced while parsing.

The `line` and `column` information of `Source` has been moved to `Source::Location`.

`Source::Range` has been added that contains a `Location` interval - allowing error messages to highlight the full region of the error.

The `File` information provides an optional file path, and pre-splits the content into lines. These lines can be used to print the full line containing an error.

This CL contains a few temporary changes that help split up this work, and to ease integration with Tint.

Bug: tint:282
Change-Id: I7aa501b0a9631f286e8e93fd7396bdbe38175727
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/31420
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
2020-10-30 20:44:53 +00:00
..
ast Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
inspector Fix build for tests on gcc-9 2020-10-27 18:47:39 +00:00
reader Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
transform Use min for bounded array accessing. 2020-10-29 17:56:06 +00:00
writer [spirv-writer] Emit access control information. 2020-10-29 14:45:02 +00:00
CMakeLists.txt Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
context.cc Context object owns a TypeManager 2020-03-27 00:47:16 +00:00
context.h Documentation fixes 2020-03-31 21:15:40 +00:00
scope_stack.h [validation] Validates declaration name uniqueness 2020-08-11 20:44:06 +00:00
scope_stack_test.cc Adding support for testing BUILD.gn 2020-04-17 13:18:20 +00:00
source.cc Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
source.h Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
type_determiner.cc Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
type_determiner.h [type-determiner] Fixup handling of unknown identifiers. 2020-10-14 18:26:31 +00:00
type_determiner_test.cc [ast] Unify the access control types. 2020-10-29 13:36:32 +00:00
type_manager.cc Context object owns a TypeManager 2020-03-27 00:47:16 +00:00
type_manager.h [ast] Determining subtype of StorageTextureType 2020-08-31 15:11:23 +00:00
type_manager_test.cc [ast] Determining subtype of StorageTextureType 2020-08-31 15:11:23 +00:00
validator.cc [validation] Validates if return statement type matches function return type 2020-08-17 15:46:07 +00:00
validator.h [Validator] Using pointers instead of refs 2020-07-30 02:27:03 +00:00
validator_control_block_test.cc [wgsl-reader] Add parsing of named structs. 2020-10-19 15:31:47 +00:00
validator_function_test.cc Remove EntryPoint. 2020-09-22 14:53:03 +00:00
validator_impl.cc Add File & Range information to tint::Source 2020-10-30 20:44:53 +00:00
validator_impl.h Update builtin methods. 2020-09-22 19:42:13 +00:00
validator_test.cc [type-determiner] Fixup handling of unknown identifiers. 2020-10-14 18:26:31 +00:00
validator_test_helper.cc [validate] Update to validate pipeline stages. 2020-09-21 17:56:41 +00:00
validator_test_helper.h [validate] Update to validate pipeline stages. 2020-09-21 17:56:41 +00:00