[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git] / mlir / test / mlir-pdll-lsp-server / document-links.test
blob7e07d22afdde3618282bd7fde36e7ba3418c4c0c
1 // RUN: mlir-pdll-lsp-server -pdll-extra-dir %S -pdll-extra-dir %S/../../include -lit-test < %s | FileCheck %s
2 {"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"pdll","capabilities":{},"trace":"off"}}
3 // -----
4 {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{
5   "uri":"test:///foo.pdll",
6   "languageId":"pdll",
7   "version":1,
8   "text":"#include \"include/included.td\"\n#include \"include/included.pdll\""
9 }}}
10 // -----
11 {"jsonrpc":"2.0","id":1,"method":"textDocument/documentLink","params":{
12   "textDocument":{"uri":"test:///foo.pdll"}
14 //      CHECK:  "id": 1,
15 // CHECK-NEXT:  "jsonrpc": "2.0",
16 // CHECK-NEXT:  "result": [
17 // CHECK-NEXT:    {
18 // CHECK-NEXT:      "range": {
19 // CHECK-NEXT:        "end": {
20 // CHECK-NEXT:          "character": 30,
21 // CHECK-NEXT:          "line": 0
22 // CHECK-NEXT:        },
23 // CHECK-NEXT:        "start": {
24 // CHECK-NEXT:          "character": 9,
25 // CHECK-NEXT:          "line": 0
26 // CHECK-NEXT:        }
27 // CHECK-NEXT:      },
28 // CHECK-NEXT:      "target": "file:{{.*}}included.td"
29 // CHECK-NEXT:    },
30 // CHECK-NEXT:    {
31 // CHECK-NEXT:      "range": {
32 // CHECK-NEXT:        "end": {
33 // CHECK-NEXT:          "character": 32,
34 // CHECK-NEXT:          "line": 1
35 // CHECK-NEXT:        },
36 // CHECK-NEXT:        "start": {
37 // CHECK-NEXT:          "character": 9,
38 // CHECK-NEXT:          "line": 1
39 // CHECK-NEXT:        }
40 // CHECK-NEXT:      },
41 // CHECK-NEXT:      "target": "file:{{.*}}included.pdll"
42 // CHECK-NEXT:    }
43 // CHECK-NEXT:  ]
44 // -----
45 {"jsonrpc":"2.0","id":7,"method":"shutdown"}
46 // -----
47 {"jsonrpc":"2.0","method":"exit"}