class Ameba::Source

Overview

An entity that represents a Crystal source file. Has path, lines of code and errors reported by rules.

Defined in:

ameba/source.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(content : String, path : Nil | String = nil) #

[View source]

Instance Method Detail

def ast #

[View source]
def content : String #

[View source]
def error(rule : Rule, line_number : Int32 | Nil, message : String) #

[View source]
def errors : Array(Ameba::Source::Error) #

[View source]
def lines #

[View source]
def path : String | Nil #

[View source]
def valid? #

[View source]