Compare commits

..

No commits in common. "1dd4bbbb054b327c1875a6581487d0c7f2acedd8" and "3cd4121951c956f1a4c9c08679011625155d0042" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -6,7 +6,7 @@ use std::{
}; };
use crate::{ use crate::{
CmpPredicate, Context, Instr, InstructionData, TerminatorKind, CmpPredicate, Context, Instr, InstructionData, TerminatorKind, Type,
builder::*, builder::*,
debug_information::{ debug_information::{
DebugArrayType, DebugBasicType, DebugFieldType, DebugInformation, DebugLocalVariable, DebugLocation, DebugArrayType, DebugBasicType, DebugFieldType, DebugInformation, DebugLocalVariable, DebugLocation,

View File

@ -193,10 +193,7 @@ impl AnalysisState {
pub fn new_symbol(&mut self, definition: usize, kind: SemanticKind) -> SymbolId { pub fn new_symbol(&mut self, definition: usize, kind: SemanticKind) -> SymbolId {
let id = SymbolId(self.symbol_table.len()); let id = SymbolId(self.symbol_table.len());
self.symbol_table.push(Symbol { self.symbol_table.push(Symbol { kind, definition });
kind,
_definition: definition,
});
id id
} }
@ -220,7 +217,7 @@ impl AnalysisState {
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
pub struct Symbol { pub struct Symbol {
pub kind: SemanticKind, pub kind: SemanticKind,
pub _definition: usize, pub definition: usize,
} }
pub struct AnalysisScope<'a> { pub struct AnalysisScope<'a> {