aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates/components/identifier-name.hbs
blob: 4f7b7640e4d41f94d427a5c25e6bc167d6e9f861 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
<div>
    <span class="source-code-font break-word identifier-menu-item" style={{style}}>{{#if identifierInfo.demangledOccName}}{{identifierInfo.demangledOccName}}{{else}}{{name}}{{/if}}</span>
    {{#unless isBinder}}
        {{#if location}}
            <span class="identifier-menu-item">{{location}}</span>
            <span class="link identifier-menu-item" onmouseup={{action "goToDefinition"}}>Go to definition</span>
        {{/if}}
    {{/unless}}
    {{#if isExternalIdentifier}}
        <span class="link identifier-menu-item" onmouseup={{action "findReferences" identifierInfo currentPackageId}}>Find references</span>
    {{/if}}
</div>