Sha256: 326dc683d8b5257f5052afba3e9e14181320abbb5dce3780d8c16b3dff1e6e02
Contents?: true
Size: 958 Bytes
Versions: 13
Compression:
Stored size: 958 Bytes
Contents
module Steep module AST module Node class TypeAssertion attr_reader location: RBS::Location[untyped, untyped] def source: () -> String def line: () -> Integer def initialize: (RBS::Location[untyped, untyped]) -> void def type: (RBS::Resolver::context, Subtyping::Check, Array[Symbol] type_vars) -> (Types::t | RBS::ParsingError | Array[Diagnostic::Signature::Base] | nil) def type?: (RBS::Resolver::context, Subtyping::Check, Array[Symbol] type_vars) -> Types::t? @type_str: String? def type_str: () -> String def type_location: () -> RBS::Location[untyped, untyped] # Returns true if given comment body has a valid type syntax # # This method is used to reject RDoc directives beforehand. # def type_syntax?: () -> bool def self.parse: (RBS::Location[untyped, untyped]) -> TypeAssertion? end end end end
Version data entries
13 entries across 13 versions & 1 rubygems