Compare commits
2 Commits
3cd4121951
...
1dd4bbbb05
Author | SHA1 | Date | |
---|---|---|---|
1dd4bbbb05 | |||
8cbc65422e |
@ -6,7 +6,7 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
CmpPredicate, Context, Instr, InstructionData, TerminatorKind, Type,
|
CmpPredicate, Context, Instr, InstructionData, TerminatorKind,
|
||||||
builder::*,
|
builder::*,
|
||||||
debug_information::{
|
debug_information::{
|
||||||
DebugArrayType, DebugBasicType, DebugFieldType, DebugInformation, DebugLocalVariable, DebugLocation,
|
DebugArrayType, DebugBasicType, DebugFieldType, DebugInformation, DebugLocalVariable, DebugLocation,
|
||||||
|
@ -193,7 +193,10 @@ 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 { kind, definition });
|
self.symbol_table.push(Symbol {
|
||||||
|
kind,
|
||||||
|
_definition: definition,
|
||||||
|
});
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,7 +220,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> {
|
||||||
|
Loading…
Reference in New Issue
Block a user