skia2/include/sksl
Ethan Nicholas 47f76853c6 Use SkSL "offset" to actually mean "line"
SkSL internally tracks token offsets, but only ever reports errors using
line numbers. With the introduction of the DSL, which (being embedded in
C++ source) only has access to line numbers in the first place, tracking
offsets went from merely providing little benefit to actively making
life more difficult.

We are changing SkSL's position tracking from handling offsets to
handling line numbers, but to simplify the review process the change is
split up into two main steps. The first step (this CL) starts using
line numbers everywhere, but avoids the thousand-line churn of actually
renaming "offset", so most "offset" fields, variables, and parameters
will be briefly misnamed and will actually contain a line number.

The followup CL will complete the process by renaming all of the
now-misnamed fields, variables, and parameters, but will not make any
behavioral changes.

Bug: skia:12459
Change-Id: I30dc87cf4b816c5ddd7b8ae1be32586388962085
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/451419
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
2021-09-24 13:16:11 +00:00
..
DSL.h Broke DSLVar into separate subclasses 2021-07-15 15:40:06 +00:00
DSLBlock.h Fixed some fixups not being applied to DSL code 2021-07-12 14:25:38 +00:00
DSLCase.h Fix line numbers of several DSLParser errors 2021-09-03 22:12:22 +00:00
DSLCore.h Restore DSLWriter to relying on a Compiler again. 2021-09-23 20:26:20 +00:00
DSLExpression.h Fix DSLParser clang-tidy warning 2021-09-16 14:49:15 +00:00
DSLFunction.h Add ExpressionArray variants to DSL calls 2021-09-10 20:06:56 +00:00
DSLLayout.h Further unified error handling between SkSL and DSL 2021-08-13 22:26:10 +00:00
DSLModifiers.h Added line numbers to DSLParser errors 2021-08-31 12:45:45 +00:00
DSLRuntimeEffects.h Disallow sk_FragCoord in SkRuntimeEffect 2021-07-21 13:36:56 +00:00
DSLStatement.h Make DSLStatement-from-SkSL ctors public. 2021-09-20 14:09:14 +00:00
DSLSymbols.h Fixed DSLParser assertion error uncovered by fuzzer 2021-09-20 13:48:41 +00:00
DSLType.h Replace DSL's Sample() with DSLGlobalVar::eval() 2021-09-14 14:54:03 +00:00
DSLVar.h Use SkSL "offset" to actually mean "line" 2021-09-24 13:16:11 +00:00
DSLWrapper.h Initial land of DSLParser 2021-07-20 20:28:54 +00:00
SkSLErrorReporter.h Use SkSL "offset" to actually mean "line" 2021-09-24 13:16:11 +00:00