File: test_solc_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (34 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Before:
  runtime ale_linters/solidity/solc.vim

After:
  call ale#linter#Reset()

Execute(Check solc output parsing):
  AssertEqual
  \ [
  \   {
  \     'lnum': 40,
  \     'col': 48,
  \     'text': 'This declaration shadows an existing declaration.',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 23,
  \     'col': 16,
  \     'text': 'Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
  \     'type': 'E',
  \   },
  \ ],
  \ ale_linters#solidity#solc#Handle(bufnr(''), [
  \   'Warning: This declaration shadows an existing declaration.',
  \   '  --> /path/to/file.sol:40:48:',
  \   '   |',
  \   '40 |   function decimals() external view returns (uint8 decimals);',
  \   '   |                                              ^------------^',
  \   'Error: Member "getSinleSignature" not found or not visible after argument-dependent lookup in type(contract OneToN).',
  \   '  --> /path/to/file.sol:23:16: ',
  \   '   | ',
  \   '23 |    return OneToN.getSinleSignature(signatures, i);',
  \   '   |           ^----------------------^',
  \ ])