Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 405528cac63c
Choose a base ref
...
head repository: crystal-lang/crystal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ff690f40a3a9
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 7, 2016

  1. Removed deprecated embed_ecr and ecr_file

    Ary Borenszweig committed Jul 7, 2016
    Copy the full SHA
    85df1d4 View commit details
  2. Compiler: missing usage of MetaVars alias

    Ary Borenszweig committed Jul 7, 2016
    Copy the full SHA
    ff690f4 View commit details
Showing with 1 addition and 13 deletions.
  1. +1 −1 src/compiler/crystal/program.cr
  2. +0 −12 src/ecr/macros.cr
2 changes: 1 addition & 1 deletion src/compiler/crystal/program.cr
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ module Crystal
getter! splat_expansions : Hash(UInt64, Type)
getter! after_inference_types : Set(Type)
getter! file_modules : Hash(String, FileModule)
property! vars : Hash(String, MetaVar)
property! vars : MetaVars
property literal_expander : LiteralExpander?
property! initialized_global_vars : Set(String)
property? wants_doc : Bool?
12 changes: 0 additions & 12 deletions src/ecr/macros.cr
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
# :nodoc:
macro embed_ecr(filename, io_name)
{{ puts "`embed_ecr` is deprecated, use `ECR.embed`".id }}
ECR.embed {{filename}}, {{io_name}}
end

# :nodoc:
macro ecr_file(filename)
{{ puts "`ecr_file` is deprecated, use `ECR.def_to_s`".id }}
ECR.def_to_s {{filename}}
end

module ECR
# Defines a `to_s(io)` method whose body is the ECR contained
# in *filename*, translated to Crystal code.