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
1.5 KiB
GLSL
28 lines
1.5 KiB
GLSL
### Compilation failed:
|
|
|
|
error: 3: expected '(' to begin constructor invocation
|
|
void expect_constructor_invocation() { int x = int; }
|
|
^
|
|
error: 4: expected '(' to begin constructor invocation
|
|
void expect_constructor_invocation_extra_initializer() { int x, y = int; }
|
|
^
|
|
error: 5: expected '(' to begin function call
|
|
void expect_function_call() { int x = func; }
|
|
^
|
|
error: 6: expected '(' to begin function call
|
|
void expect_function_call_extra_initializer() { int x, y = func; }
|
|
^
|
|
error: 8: expected '(' to begin constructor invocation
|
|
int g_expect_constructor_invocation = int;
|
|
^
|
|
error: 9: expected '(' to begin constructor invocation
|
|
int g_expect_constructor_invocation_extra_initializer, ix = int;
|
|
^
|
|
error: 10: expected '(' to begin function call
|
|
int g_expect_function_call = func;
|
|
^
|
|
error: 11: expected '(' to begin function call
|
|
int g_expect_function_call_extra_initializer, iy = func;
|
|
^
|
|
8 errors
|