Trait sixtyfps_compilerlib::diagnostics::Spanned [−][src]
pub trait Spanned {
fn span(&self) -> Span;
fn source_file(&self) -> Option<&SourceFile>;
fn to_source_location(&self) -> SourceLocation { ... }
}Returns a span. This is implemented for tokens and nodes
Required methods
fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
Provided methods
fn to_source_location(&self) -> SourceLocation[src]
Implementations on Foreign Types
impl Spanned for Option<SourceLocation>[src]
impl Spanned for Option<SourceLocation>[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Option<SyntaxNode>[src]
impl Spanned for Option<SyntaxNode>[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Option<NodeOrToken>[src]
impl Spanned for Option<NodeOrToken>[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Option<SyntaxToken>[src]
impl Spanned for Option<SyntaxToken>[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
Implementors
impl Spanned for NodeOrToken[src]
impl Spanned for NodeOrToken[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for sixtyfps_compilerlib::expression_tree::BindingExpression[src]
impl Spanned for sixtyfps_compilerlib::expression_tree::BindingExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for sixtyfps_compilerlib::object_tree::Element[src]
impl Spanned for sixtyfps_compilerlib::object_tree::Element[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for SyntaxNode[src]
impl Spanned for SyntaxNode[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for SyntaxToken[src]
impl Spanned for SyntaxToken[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Array[src]
impl Spanned for Array[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ArrayType[src]
impl Spanned for ArrayType[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for AtImageUrl[src]
impl Spanned for AtImageUrl[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for AtLinearGradient[src]
impl Spanned for AtLinearGradient[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for BinaryExpression[src]
impl Spanned for BinaryExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Binding[src]
impl Spanned for Binding[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for sixtyfps_compilerlib::parser::syntax_nodes::BindingExpression[src]
impl Spanned for sixtyfps_compilerlib::parser::syntax_nodes::BindingExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for CallbackConnection[src]
impl Spanned for CallbackConnection[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for CallbackDeclaration[src]
impl Spanned for CallbackDeclaration[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ChildrenPlaceholder[src]
impl Spanned for ChildrenPlaceholder[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for CodeBlock[src]
impl Spanned for CodeBlock[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Component[src]
impl Spanned for Component[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ConditionalElement[src]
impl Spanned for ConditionalElement[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ConditionalExpression[src]
impl Spanned for ConditionalExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for DeclaredIdentifier[src]
impl Spanned for DeclaredIdentifier[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Document[src]
impl Spanned for Document[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for sixtyfps_compilerlib::parser::syntax_nodes::Element[src]
impl Spanned for sixtyfps_compilerlib::parser::syntax_nodes::Element[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ExportIdentifier[src]
impl Spanned for ExportIdentifier[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ExportName[src]
impl Spanned for ExportName[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ExportSpecifier[src]
impl Spanned for ExportSpecifier[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ExportsList[src]
impl Spanned for ExportsList[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Expression[src]
impl Spanned for Expression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ExternalName[src]
impl Spanned for ExternalName[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for FunctionCallExpression[src]
impl Spanned for FunctionCallExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ImportIdentifier[src]
impl Spanned for ImportIdentifier[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ImportIdentifierList[src]
impl Spanned for ImportIdentifierList[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ImportSpecifier[src]
impl Spanned for ImportSpecifier[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for InternalName[src]
impl Spanned for InternalName[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ObjectLiteral[src]
impl Spanned for ObjectLiteral[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ObjectMember[src]
impl Spanned for ObjectMember[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ObjectType[src]
impl Spanned for ObjectType[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ObjectTypeMember[src]
impl Spanned for ObjectTypeMember[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for PropertyAnimation[src]
impl Spanned for PropertyAnimation[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for PropertyDeclaration[src]
impl Spanned for PropertyDeclaration[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for QualifiedName[src]
impl Spanned for QualifiedName[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for RepeatedElement[src]
impl Spanned for RepeatedElement[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for RepeatedIndex[src]
impl Spanned for RepeatedIndex[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ReturnStatement[src]
impl Spanned for ReturnStatement[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for ReturnType[src]
impl Spanned for ReturnType[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for SelfAssignment[src]
impl Spanned for SelfAssignment[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for State[src]
impl Spanned for State[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for StatePropertyChange[src]
impl Spanned for StatePropertyChange[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for States[src]
impl Spanned for States[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for StringTemplate[src]
impl Spanned for StringTemplate[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for StructDeclaration[src]
impl Spanned for StructDeclaration[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for SubElement[src]
impl Spanned for SubElement[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Transition[src]
impl Spanned for Transition[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Transitions[src]
impl Spanned for Transitions[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for TwoWayBinding[src]
impl Spanned for TwoWayBinding[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for Type[src]
impl Spanned for Type[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for UnaryOpExpression[src]
impl Spanned for UnaryOpExpression[src]fn span(&self) -> Span[src]
fn source_file(&self) -> Option<&SourceFile>[src]
impl Spanned for SourceLocation[src]
impl Spanned for SourceLocation[src]