aboutsummaryrefslogtreecommitdiff
path: root/javascript/app/templates/components/identifier-name.hbs
blob: ca16e23c582da9cbc5d9de65ba57850484c1eaec (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>