Skip to content

Conversation

matthewnitschke-wk
Copy link
Contributor

@matthewnitschke-wk matthewnitschke-wk commented Mar 28, 2023

Closes #21

Within an editor, running goto definition on a parameter reference always navigates to the parameter definition, regardless on if its a field parameter (this.foo) or a traditional parameter (String foo). Running goto definition on the this within the field parameter, navigates to the field itself.

In an effort to have parity with IDE navigation, this pr handles a reference on the this keyword for field parameters. The pr also addresses the issue stated within #21, resolving inconsistencies in params

Through some local analysis, this pr reduces the scip lint count in wdesk_sdk from 3436 to 457

@rmconsole-wf
Copy link

rmconsole-wf commented Mar 28, 2023

Merge Requirements Met ✅

Request Rosie to automerge this pull request by including @Workiva/release-management-p in a comment.

General Information

Ticket(s): None found in title
Code Review(s): #22
Release Image Tags:

  • drydock.workiva.net/workiva/scip-dart:4419519
  • drydock.workiva.net/workiva/scip-dart:pr-22

Reviewers: evanweible-wf, matthewnitschke-wk

Additional Information

Watchlist Notifications: None

	When this pull is merged I will add it to the following release:
	Version: scip-dart 1.0.4
	Release Ticket(s): RM-183271


Note: This is a shortened report. Click here to view Rosie's full evaluation.
Last updated on Wednesday, March 29 11:30 AM CST

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

// ^^^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#
// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#name.
// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#type.
// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#name.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is targeting the this keyword, referencing the field, not the parameter definition

// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#name.
// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#type.
// ^^^^ reference scip-dart pub dart_test 1.0.0 lib/more.dart/Animal#name.
// ^^^^ definition local 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is targeting the parameter itself, hence its local definition (not accessible outside of the file)

@matthewnitschke-wk matthewnitschke-wk changed the title fixed issue with formal field parameters on constructors that are named Fixed issue with formal field parameters on constructors that are named Mar 29, 2023
_registerAsDefinition(element);
}

_registerAsDefinition(element);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All parameters are definitions now, this is for parity with IDE navigation/analysis

@matthewnitschke-wk matthewnitschke-wk changed the title Fixed issue with formal field parameters on constructors that are named Parity with IDE parameter indexing Mar 29, 2023
@matthewnitschke-wk matthewnitschke-wk marked this pull request as ready for review March 29, 2023 16:17
@matthewnitschke-wk matthewnitschke-wk requested a review from a team March 29, 2023 16:19
@matthewnitschke-wk
Copy link
Contributor Author

QA +1

🚀 @Workiva/release-management-p 🚢

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constructor field parameters use incorrect symbol format
5 participants