Update for -master
fn_proto.extern_export_token -> fn_proto.extern_export_inline_token And update the data by the way.
This commit is contained in:
parent
b33cb8fc0d
commit
df9560db51
File diff suppressed because it is too large
Load Diff
@ -243,7 +243,7 @@ fn publishDiagnostics(arena: *std.heap.ArenaAllocator, handle: DocumentStore.Han
|
|||||||
=> blk: {
|
=> blk: {
|
||||||
var buf: [1]std.zig.ast.Node.Index = undefined;
|
var buf: [1]std.zig.ast.Node.Index = undefined;
|
||||||
const func = analysis.fnProto(tree, decl_idx, &buf).?;
|
const func = analysis.fnProto(tree, decl_idx, &buf).?;
|
||||||
if (func.extern_export_token != null) break :blk;
|
if (func.extern_export_inline_token != null) break :blk;
|
||||||
|
|
||||||
if (config.warn_style) {
|
if (config.warn_style) {
|
||||||
if (func.name_token) |name_token| {
|
if (func.name_token) |name_token| {
|
||||||
|
@ -455,7 +455,7 @@ fn writeNodeTokens(
|
|||||||
try writeDocComments(builder, tree, docs);
|
try writeDocComments(builder, tree, docs);
|
||||||
|
|
||||||
try writeToken(builder, fn_proto.visib_token, .keyword);
|
try writeToken(builder, fn_proto.visib_token, .keyword);
|
||||||
try writeToken(builder, fn_proto.extern_export_token, .keyword);
|
try writeToken(builder, fn_proto.extern_export_inline_token, .keyword);
|
||||||
try writeToken(builder, fn_proto.lib_name, .string);
|
try writeToken(builder, fn_proto.lib_name, .string);
|
||||||
try writeToken(builder, fn_proto.ast.fn_token, .keyword);
|
try writeToken(builder, fn_proto.ast.fn_token, .keyword);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user