// GetStyle returns Style for token.Code. func (t *Definition) GetStyle(tc token.Code) Style { // FIXME: style cascading s := t.findStyle(tc) for s == nil { tc = tc.Parent() if tc == 0 { return Style{} } s = t.findStyle(tc) } return *s }