cb13c892af
SkSL errors now identify the specific range of code they are describing, rather than just the line number. Change-Id: Ifabb3148476f9b4cd8e532f23e5b38e1cf33a87e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/528039 Reviewed-by: John Stiles <johnstiles@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
28 lines
658 B
GLSL
28 lines
658 B
GLSL
### Compilation failed:
|
|
|
|
error: 1: unknown identifier 'x'
|
|
void a() { x = float2(1); }
|
|
^
|
|
error: 2: unknown identifier 'x'
|
|
void b() { float w = x; }
|
|
^
|
|
error: 3: unknown identifier 'x'
|
|
void c() { float w = x, y; }
|
|
^
|
|
error: 4: unknown identifier 'x'
|
|
void d() { float w = x, y = z; }
|
|
^
|
|
error: 4: unknown identifier 'z'
|
|
void d() { float w = x, y = z; }
|
|
^
|
|
error: 6: unknown identifier 'f'
|
|
float e = f, g = h;
|
|
^
|
|
error: 6: unknown identifier 'h'
|
|
float e = f, g = h;
|
|
^
|
|
error: 7: unknown identifier 'j'
|
|
float i = j, k;
|
|
^
|
|
8 errors
|