ids -> tags (part 2)
This commit is contained in:
		
							parent
							
								
									da4d2c2be1
								
							
						
					
					
						commit
						ce841d1dc4
					
				@ -1019,7 +1019,7 @@ pub fn getFieldAccessType(
 | 
			
		||||
 | 
			
		||||
    while (true) {
 | 
			
		||||
        const tok = tokenizer.next();
 | 
			
		||||
        switch (tok.tag) {
 | 
			
		||||
        switch (tok.id) {
 | 
			
		||||
            .Eof => return FieldAccessReturn{
 | 
			
		||||
                .original = current_type,
 | 
			
		||||
                .unwrapped = try resolveDerefType(store, arena, current_type, &bound_type_params),
 | 
			
		||||
@ -1806,7 +1806,7 @@ fn lookupSymbolGlobalInternal(
 | 
			
		||||
            if (scope.decls.getEntry(symbol)) |candidate| {
 | 
			
		||||
                switch (candidate.value) {
 | 
			
		||||
                    .ast_node => |node| {
 | 
			
		||||
                        if (node.id == .ContainerField) continue;
 | 
			
		||||
                        if (node.tag == .ContainerField) continue;
 | 
			
		||||
                    },
 | 
			
		||||
                    .label_decl => continue,
 | 
			
		||||
                    else => {},
 | 
			
		||||
 | 
			
		||||
@ -75,7 +75,7 @@ fn symbolReferencesInternal(
 | 
			
		||||
    const node = node_handle.node;
 | 
			
		||||
    const handle = node_handle.handle;
 | 
			
		||||
 | 
			
		||||
    switch (node.id) {
 | 
			
		||||
    switch (node.tag) {
 | 
			
		||||
        .ContainerDecl, .Root, .Block => {
 | 
			
		||||
            var idx: usize = 0;
 | 
			
		||||
            while (node.iterate(idx)) |child| : (idx += 1) {
 | 
			
		||||
 | 
			
		||||
@ -232,7 +232,7 @@ fn writeNodeTokens(builder: *Builder, arena: *std.heap.ArenaAllocator, store: *D
 | 
			
		||||
    var child_frame = try arena.child_allocator.alignedAlloc(u8, std.Target.stack_align, FrameSize);
 | 
			
		||||
    defer arena.child_allocator.free(child_frame);
 | 
			
		||||
 | 
			
		||||
    switch (node.id) {
 | 
			
		||||
    switch (node.tag) {
 | 
			
		||||
        .Root, .Block => {
 | 
			
		||||
            const first_tok = if (node.cast(ast.Node.Block)) |block_node| block: {
 | 
			
		||||
                try writeToken(builder, block_node.label, .label);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user