if (ShortVarReference.SHORT_VAR_DECLARATION.accepts(this))
return new PsiReference[]{new ShortVarReference(this)};
if (SELECTOR_MATCHER.accepts(this)) {
GoSelectorExpression selectorExpression = (GoSelectorExpression) getParent();
List<Reference> references = new ArrayList<Reference>();
GoType baseTypes[] = selectorExpression.getBaseExpression().getType();
if (baseTypes.length >= 1 && baseTypes[0] != null)
references = baseTypes[0].accept(
new UpdatingTypeVisitor<List<Reference>>() {
final GoLiteralIdentifier ident = GoLiteralIdentifierImpl.this;