aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/components
diff options
context:
space:
mode:
authorAlexey Kiryushin <alexey.a.kiryushin@gmail.com>2018-11-16 16:19:03 +0300
committerGitHub <noreply@github.com>2018-11-16 16:19:03 +0300
commit866bfff6ff41a2796329c6bb28db688cbfeed2b8 (patch)
tree3da173b79af7727969116df212fba597fbddc3a3 /javascript/app/components
parentb5a3048a880c8ce1c2bfa795a39576d02f416be2 (diff)
Add cross-package 'find references'
Diffstat (limited to 'javascript/app/components')
-rw-r--r--javascript/app/components/haskell-module.js7
-rw-r--r--javascript/app/components/identifier-name.js3
2 files changed, 6 insertions, 4 deletions
diff --git a/javascript/app/components/haskell-module.js b/javascript/app/components/haskell-module.js
index cf750b9..a509c58 100644
--- a/javascript/app/components/haskell-module.js
+++ b/javascript/app/components/haskell-module.js
@@ -162,10 +162,11 @@ function initializeIdentifiers (sourceCodeContainerElement,component) {
event.which,
currentLineNumber);
} else {
- if(identifierInfo.sort === "External") {
+ if(identifierInfo.sort === "External") {
component.get('findReferences')(component.get('packageId'),
identifierInfo.externalId,
- identifierInfo.demangledOccName);
+ identifierInfo.demangledOccName,
+ identifierInfo.locationInfo);
}
}
@@ -400,7 +401,7 @@ function initializeExpressionInfo(sourceCodeContainerElement,component) {
}
export default Ember.Component.extend({
- store : Ember.inject.service('store'),
+ store : Ember.inject.service('store'),
selectedIdentifier : null,
isHoveredOverIdentifier : false,
hasSelectedExpression : false,
diff --git a/javascript/app/components/identifier-name.js b/javascript/app/components/identifier-name.js
index 950b8c7..e0f8c3c 100644
--- a/javascript/app/components/identifier-name.js
+++ b/javascript/app/components/identifier-name.js
@@ -54,7 +54,8 @@ export default Ember.Component.extend({
findReferences (identifierInfo,currentPackageId) {
this.get('findReferences')(currentPackageId,
identifierInfo.externalId,
- identifierInfo.demangledOccName);
+ identifierInfo.demangledOccName,
+ identifierInfo.locationInfo);
}
}
});