This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/mirah/ast/flow.rb b/lib/mirah/ast/flow.rb | |
| index d204727..f62bce1 100644 | |
| --- a/lib/mirah/ast/flow.rb | |
| +++ b/lib/mirah/ast/flow.rb | |
| @@ -292,7 +292,7 @@ module Mirah | |
| @type = types.size == 1 ? types[0] : AST.type(nil, 'java.lang.Throwable') | |
| typer.learn_local_type(static_scope, name, @type) | |
| end | |
| - @inferred_type = typer.infer(body, true) | |
| + @inferred_type = typer.infer(body, expression) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| ["a"] | |
| rescue | |
| begin | |
| "a" | |
| rescue | |
| 2 | |
| end | |
| end | |
| nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NativeException: java.lang.NullPointerException: null | |
| infer_asts at /Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:53 | |
| each at org/jruby/RubyArray.java:1572 | |
| infer_asts at /Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:53 | |
| generate at /Users/ribrdb/Documents/git/mirah/lib/mirah/generator.rb:41 | |
| execute at /Users/ribrdb/Documents/git/mirah/lib/mirah/commands/run.rb:30 | |
| execute_base at /Users/ribrdb/Documents/git/mirah/lib/mirah/commands/base.rb:41 | |
| catch at org/jruby/RubyKernel.java:1190 | |
| execute_base at /Users/ribrdb/Documents/git/mirah/lib/mirah/commands/base.rb:38 | |
| execute at /Users/ribrdb/Documents/git/mirah/lib/mirah/commands/run.rb:23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.mirah.core.builder; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.HashSet; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.mirah.core.builder; | |
| import java.io.File; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.HashSet; | |
| import java.util.List; | |
| import java.util.Map; | |
| import java.util.Set; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.mirah.dubious.* | |
| class MyApp < Router | |
| resources :products, :posts, :categories | |
| root :to => 'welcome#show' | |
| match '/:controller(/:action(/:id))' | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Now I need to figure out how to build this without requiring all the SpeedTracer source. | |
| import com.google.gwt.core.client.GWT; | |
| import com.google.gwt.chrome.crx.client.BrowserAction | |
| import 'BrowserActionInfo', 'com.google.gwt.chrome.crx.client.BrowserAction$ManifestInfo' | |
| import com.google.gwt.chrome.crx.client.events.BrowserActionEvent; | |
| import com.google.gwt.chrome.crx.client.Extension | |
| import 'ExtensionInfo', 'com.google.gwt.chrome.crx.client.Extension$ManifestInfo' | |
| import com.google.gwt.chrome.crx.client.Icon | |
| import 'IconSource', 'com.google.gwt.chrome.crx.client.Icon$Source' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| require 'ant' | |
| rescue | |
| puts 'This Rakefile requires JRuby. Please use jruby -S rake.' | |
| exit 1 | |
| end | |
| require 'mirah/appengine_tasks' | |
| require 'rake/clean' | |
| appengine_app :app, 'app', '' => ["WEB-INF/lib/application.jar", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashMap | |
| import java.util.Map | |
| class Params | |
| def initialize(request:HttpServletRequest) | |
| @request = request | |
| @params = HashMap.new | |
| end | |
| def get(name:String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = 'foo' | |
| defmacro mymacro do | |
| a # This should be a vcall, not a local | |
| end |