This file contains 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
hoge = {}; | |
/** @interface */ | |
hoge.Interface1 = function(){}; | |
/** @interface */ | |
hoge.Interface2 = function(){}; | |
/** |
This file contains 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.io.IOException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import javax.xml.parsers.ParserConfigurationException; | |
import org.xml.sax.SAXException; | |
import com.aetrion.flickr.FlickrException; | |
import com.aetrion.flickr.REST; |
This file contains 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
<?php | |
class Hoge { | |
public $foo = null; | |
public $bar = 'this is bar'; | |
public function __get($name) { | |
return "this is __get"; | |
} | |
} |
This file contains 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
// object宣言部は含まない | |
// 実体 | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello\ufe34T = (function() { | |
return "hello world!" | |
}); | |
// 外部からの呼び出し用 | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello = (function() { | |
return this.hello\ufe34T() | |
}); |
This file contains 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
// コンストラクタで宣言 $jsfield$というプリフィックスを付けて宣言される | |
ScalaJS.c.helloworld\ufe33HelloWorld$ = (function() { | |
ScalaJS.c.java\ufe33lang\ufe33Object.call(this); | |
this.$jsfield$hello = null | |
}); | |
// getter | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello\ufe34T = (function() { | |
return this.$jsfield$hello | |
}); | |
// コンストラクタ実体で初期化(Javascriptのコンストラクタとは別で存在している) |
This file contains 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
// 関数名のポストフィックスでパラメーター情報がつく | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello\ufe34T = (function() { | |
return "hello world!" | |
}); | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello\ufe34Ljava\ufe33lang\ufe33Integer\ufe34T = (function(arg$num) { | |
return ("hello world! " + arg$num) | |
}); | |
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hello\ufe34T\ufe34T = (function(arg$text) { | |
return ("hello world! " + arg$text) | |
}); |
This file contains 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
// def hoge()の中身のみ貼付ける | |
var array$jsid$11979 = [ScalaJS.modules.scala\ufe33Predef().int2Integer\ufe34I\ufe34Ljava\ufe33lang\ufe33Integer(10), ScalaJS.modules.scala\ufe33Predef().int2Integer\ufe34I\ufe34Ljava\ufe33lang\ufe33Integer(20), ScalaJS.modules.scala\ufe33Predef().int2Integer\ufe34I\ufe34Ljava\ufe33lang\ufe33Integer(30)]; | |
array$jsid$11979[0] = ScalaJS.modules.scala\ufe33Predef().int2Integer\ufe34I\ufe34Ljava\ufe33lang\ufe33Integer(15); | |
var num$jsid$11980 = ScalaJS.as.java\ufe33lang\ufe33Number(array$jsid$11979[0]) |
This file contains 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
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hoge\ufe34I\ufe34O = (function(arg$num) { | |
// 宣言時の場合は評価結果の場で宣言される(Javascriptではifブロック内スコープは無いので) | |
if ((arg$num === 20)) { | |
var value$jsid$11972 = "hello" | |
} else { | |
var value$jsid$11972 = "bye" | |
}; | |
// 再代入の場合は評価結果の場で代入される | |
if ((arg$num === 20)) { | |
value$jsid$11972 = "hello" |
This file contains 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
ScalaJS.c.helloworld\ufe33HelloWorld$.prototype.hoge\ufe34O\ufe34V = (function(arg$num) { | |
var rc6$jsid$17007 = false; | |
var x2$jsid$17002 = null; | |
var x1$jsid$17001 = arg$num; | |
var result$$jslabel$matchEnd7$17008; | |
// Someはそのままの機能、if文を並べつつ代入&ラベルでbreak(このbreakの機能初めて知った) | |
$jslabel$matchEnd7$17008: { | |
if (ScalaJS.is.scala\ufe33Some(x1$jsid$17001)) { | |
rc6$jsid$17007 = true; | |
x2$jsid$17002 = ScalaJS.as.scala\ufe33Some(x1$jsid$17001); |
This file contains 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
// Note: Some Emscripten settings will significantly limit the speed of the generated code. | |
// Note: Some Emscripten settings may limit the speed of the generated code. | |
// The Module object: Our interface to the outside world. We import | |
// and export values on it, and do the work to get that through | |
// closure compiler if necessary. There are various ways Module can be used: | |
// 1. Not defined. We create it here | |
// 2. A function parameter, function(Module) { ..generated code.. } | |
// 3. pre-run appended it, var Module = {}; ..generated code.. | |
// 4. External script tag defines var Module. | |
// We need to do an eval in order to handle the closure compiler |
OlderNewer