Do not offer completion for function labels
This commit is contained in:
parent
7a2cd418a8
commit
0d85668ce4
@ -1285,9 +1285,13 @@ pub fn getFieldAccessType(
|
|||||||
.period => {
|
.period => {
|
||||||
const after_period = tokenizer.next();
|
const after_period = tokenizer.next();
|
||||||
switch (after_period.tag) {
|
switch (after_period.tag) {
|
||||||
.eof => return FieldAccessReturn{
|
.eof => {
|
||||||
|
// function labels cannot be dot accessed
|
||||||
|
if (current_type.isFunc()) return null;
|
||||||
|
return FieldAccessReturn{
|
||||||
.original = current_type,
|
.original = current_type,
|
||||||
.unwrapped = try resolveDerefType(store, arena, current_type, &bound_type_params),
|
.unwrapped = try resolveDerefType(store, arena, current_type, &bound_type_params),
|
||||||
|
};
|
||||||
},
|
},
|
||||||
.identifier => {
|
.identifier => {
|
||||||
if (after_period.loc.end == tokenizer.buffer.len) {
|
if (after_period.loc.end == tokenizer.buffer.len) {
|
||||||
|
Loading…
Reference in New Issue
Block a user