pub struct AnalysisResult {
pub tokens: Vec<Token>,
pub interner: Interner,
pub type_registry: TypeRegistry,
pub policy_registry: PolicyRegistry,
pub errors: Vec<ParseError>,
pub escape_errors: Vec<AnalysisError>,
pub ownership_errors: Vec<AnalysisError>,
pub ownership_states: HashMap<String, VarState>,
pub symbol_index: SymbolIndex,
pub lgx_findings: Vec<Finding>,
pub copy_findings: Vec<Finding>,
pub refusals: Vec<Refusal>,
}Expand description
Result of running the full analysis pipeline on a document.
Fields§
§tokens: Vec<Token>§interner: Interner§type_registry: TypeRegistry§policy_registry: PolicyRegistry§errors: Vec<ParseError>§escape_errors: Vec<AnalysisError>§ownership_errors: Vec<AnalysisError>§ownership_states: HashMap<String, VarState>§symbol_index: SymbolIndex§lgx_findings: Vec<Finding>The LGX template checker’s findings — accessibility and structure warnings on a View: —
at their spans in the file.
copy_findings: Vec<Finding>The value-semantics copy lint’s findings, at their spans in the file — see
logicaffeine_language::lint.
refusals: Vec<Refusal>Every refusal the browser build of this program meets, each at the construct it refuses.
Whole-program: computed from a full parse only, since whether a ## Route or a mounted
component lowers depends on the declarations beside it.
Auto Trait Implementations§
impl Freeze for AnalysisResult
impl RefUnwindSafe for AnalysisResult
impl Send for AnalysisResult
impl Sync for AnalysisResult
impl Unpin for AnalysisResult
impl UnsafeUnpin for AnalysisResult
impl UnwindSafe for AnalysisResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.