Skip to content

Commit

Permalink
renamed so github doesnt incorrectly name function
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewnitschke-wk committed Sep 1, 2023
1 parent 21fbc87 commit fbd7cb3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions lib/src/scip_visitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ class ScipVisitor extends GeneralizingAstVisitor {
final element = node.type?.element;

if (element == null) return;


_registerAsReference(
element,
offset: node.offset,
Expand Down
4 changes: 2 additions & 2 deletions snapshots/input/dart3-features/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void parser(int charCode) {
const digit9 = 9;

void skipComment() {}
void operator(int charCode) {}
void operatorFn(int charCode) {}
void number() {}
void invalid() {}

Expand All @@ -22,7 +22,7 @@ void parser(int charCode) {
skipComment();

case slash || star || plus || minus:
operator(charCode);
operatorFn(charCode);

case >= digit0 && <= digit9:
number();
Expand Down
16 changes: 8 additions & 8 deletions snapshots/output/dart3-features/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
void skipComment() {}
// ^^^^^^^^^^^ definition scip-dart pub dart3_features 1.0.0 lib/main.dart/skipComment().
// documentation ```dart
void operator(int charCode) {}
// ^^^^^^^^ definition scip-dart pub dart3_features 1.0.0 lib/main.dart/operator().
void operatorFn(int charCode) {}
// ^^^^^^^^^^ definition scip-dart pub dart3_features 1.0.0 lib/main.dart/operatorFn().
// documentation ```dart
// ^^^ reference scip-dart pub dart:core 3.1.0 dart:core/int.dart/int#
// ^^^^^^^^ definition local 9
// documentation ```dart
// ^^^ reference scip-dart pub dart:core 3.1.0 dart:core/int.dart/int#
// ^^^^^^^^ definition local 9
// documentation ```dart
void number() {}
// ^^^^^^ definition scip-dart pub dart3_features 1.0.0 lib/main.dart/number().
// documentation ```dart
Expand All @@ -74,9 +74,9 @@
// ^^^^ reference local 3
// ^^^^ reference local 4
// ^^^^^ reference local 5
operator(charCode);
// ^^^^^^^^ reference scip-dart pub dart3_features 1.0.0 lib/main.dart/operator().
// ^^^^^^^^ reference local 1
operatorFn(charCode);
// ^^^^^^^^^^ reference scip-dart pub dart3_features 1.0.0 lib/main.dart/operatorFn().
// ^^^^^^^^ reference local 1

case >= digit0 && <= digit9:
// ^^^^^^ reference local 7
Expand Down

0 comments on commit fbd7cb3

Please sign in to comment.