Skip to content

Commit

Permalink
use getter for structs
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya committed Jul 2, 2018
1 parent 2840520 commit 0ca97ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/compiler/crystal/tools/expand.cr
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module Crystal
struct ExpandResult
include JSON::Serializable

property status : String
property message : String
property expansions : Array(Expansion)?
getter status : String
getter message : String
getter expansions : Array(Expansion)?

def initialize(@status, @message)
end
Expand Down Expand Up @@ -38,9 +38,9 @@ module Crystal
include JSON::Serializable
alias MacroImplementation = {name: String, implementation: ImplementationTrace}

property original_source : String
property expanded_sources : Array(String)
property expanded_macros : Array(Array(MacroImplementation))
getter original_source : String
getter expanded_sources : Array(String)
getter expanded_macros : Array(Array(MacroImplementation))

def initialize(@original_source, @expanded_sources, @expanded_macros)
end
Expand Down

0 comments on commit 0ca97ce

Please sign in to comment.