Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finished addon changes.

  • Loading branch information...
commit 5fcb550c3e3bfb31102b966209071bbc62b4834c 1 parent a85d42b
nddrylliog authored
View
12 sdk/math.ooc
@@ -46,7 +46,7 @@ floor: extern(floorl) func ~Long (LDouble) -> LDouble
- Scott
*/
-Double: cover {
+extend Double {
cos: extern(cos) func -> This
sin: extern(sin) func -> This
tan: extern(tan) func -> This
@@ -66,7 +66,7 @@ Double: cover {
abs: extern(fabs) func -> This
pow: extern(pow) func (This) -> This
exp: extern(exp) func -> This
-
+
log: extern(log) func -> This
log10: extern(log10) func -> This
@@ -80,7 +80,7 @@ Double: cover {
truncate: extern(trunc) func -> This
}
-Float: cover {
+extend Float {
cos: extern(cosf) func -> This
sin: extern(sinf) func -> This
tan: extern(tanf) func -> This
@@ -100,7 +100,7 @@ Float: cover {
abs: extern(fabsf) func -> This
pow: extern(powf) func (This) -> This
exp: extern(expf) func -> This
-
+
log: extern(logf) func -> This
log10: extern(log10f) func -> This
@@ -114,7 +114,7 @@ Float: cover {
truncate: extern(truncf) func -> This
}
-LDouble: cover {
+extend LDouble {
cos: extern(cosl) func -> This
sin: extern(sinl) func -> This
tan: extern(tanl) func -> This
@@ -134,7 +134,7 @@ LDouble: cover {
abs: extern(fabsl) func -> This
pow: extern(powl) func (This) -> This
exp: extern(expl) func -> This
-
+
log: extern(logl) func -> This
log10: extern(log10l) func -> This
View
2  sdk/text/StringTemplate.ooc
@@ -1,7 +1,7 @@
import text/Buffer
import structs/HashMap
-String: cover {
+extend String {
/**
Replace all template tokens in *this* with the matching value of *values*.
View
2  sdk/text/StringTokenizer.ooc
@@ -75,7 +75,7 @@ StringTokenizerIterator: class <T> extends Iterator<T> {
}
-String: cover {
+extend String {
split: func~withString(s: String, maxSplits: Int) -> StringTokenizer {
StringTokenizer new(this, s, maxSplits)
View
6 source/rock/middle/Addon.ooc
@@ -90,6 +90,12 @@ Addon: class extends Node {
call suggest(fDecl)
}
+ if(!call getSuffix()) {
+ for(f in functions) {
+ if(f getName() == call getName()) call suggest(f)
+ }
+ }
+
return 0
}
Please sign in to comment.
Something went wrong with that request. Please try again.