Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spike implementation of scip test #153

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install scip cli
run: |
bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.3.3/scip-linux-amd64.tar.gz"' | tar xzf - scip
bash -c 'curl -L "https://github.com/sourcegraph/scip/releases/download/v0.5.0/scip-linux-amd64.tar.gz"' | tar xzf - scip
./scip --version

- uses: dart-lang/setup-dart@v1
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,9 @@ gen-proto:
protoc --dart_out=. ./lib/src/gen/scip.proto

print:
scip print ./index.scip
scip print ./index.scip

.PHONY: test
test:
dart run scip_dart ./test
scip test ./test
25 changes: 25 additions & 0 deletions test/lib/functions.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
void main() {}
// ^^^^ definition scip-dart pub scip_dart_test 1.0.0 lib/`functions.dart`/main().

String withReturn() => 'asdf';
// <- reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#

void withParameters(
String pos,
//^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
// ^^^ definition local 0
int pos2,
//^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
// ^^^^ definition local 1
) {}

void withNamedParameters({
String? name,
//^^^^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
// ^^^^ definition scip-dart pub dart:core 2.19.0 dart:core/`string.dart`/String#
int? name2,
//^^^ reference scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
// ^^^^^ definition scip-dart pub dart:core 2.19.0 dart:core/`int.dart`/int#
}) {}

void withPositionalParameters(String base, [String? pos, int? pos2]) {}
Loading