rsense-core 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rsense.jar +0 -0
- data/lib/rsense/core/version.rb +1 -1
- data/src/org/cx4a/rsense/ruby/Ruby.java +4 -0
- data/src/org/cx4a/rsense/typing/runtime/AnnotationResolver.java +5 -5
- data/src/org/cx4a/rsense/typing/runtime/RuntimeHelper.java +3 -3
- data/src/resources/org/cx4a/rsense/rsense.properties +1 -1
- data/stubs/1.8/_builtin.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 987b4dad768c853df5e17b38d17f258179264e5d
|
4
|
+
data.tar.gz: 443f3c0ea949a6a819089fc877f4ab5816daff23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18a0ab68c982ca1c19fbce80d114e0fe6abb8d9b32086818d7be4a97e331f423f32c5a5e9db1ec735eb659111cc4d3d04371e9b46be07e5f6ab741a27e46adca
|
7
|
+
data.tar.gz: 44ddfc0b45788119df638b05d7a14a0957394fc61ec93739dcdb7d11564dea2f3e34a84446e9447d1acb274c8294778b89b16af2d4901918a41f31a4d199ad47
|
data/lib/rsense.jar
CHANGED
Binary file
|
data/lib/rsense/core/version.rb
CHANGED
@@ -32,7 +32,7 @@ public class AnnotationResolver {
|
|
32
32
|
public enum Result {
|
33
33
|
NOANNOT, UNRESOLVED, RESOLVED,
|
34
34
|
};
|
35
|
-
|
35
|
+
|
36
36
|
private Graph graph;
|
37
37
|
private Ruby runtime;
|
38
38
|
private TypeVarMap env;
|
@@ -107,7 +107,7 @@ public class AnnotationResolver {
|
|
107
107
|
return receiver == null
|
108
108
|
|| resolveClassConstraints(template, RuntimeHelper.getClassAnnotation(receiver.getMetaClass()), receiver);
|
109
109
|
}
|
110
|
-
|
110
|
+
|
111
111
|
public boolean resolveMethodArg(Template template, ClassType classType, TypeExpression argType, IRubyObject receiver, IRubyObject[] args) {
|
112
112
|
if (argType == null) {
|
113
113
|
// arity check
|
@@ -295,7 +295,7 @@ public class AnnotationResolver {
|
|
295
295
|
}
|
296
296
|
return true;
|
297
297
|
}
|
298
|
-
|
298
|
+
|
299
299
|
public boolean resolveMethodBlock(Template template, ClassType classType, MethodType.Block blockType, IRubyObject receiver) {
|
300
300
|
Block block = template.getAttribute().getBlock();
|
301
301
|
|
@@ -354,7 +354,7 @@ public class AnnotationResolver {
|
|
354
354
|
|
355
355
|
return args.toArray(new TypeSet[0]);
|
356
356
|
}
|
357
|
-
|
357
|
+
|
358
358
|
public TypeSet processMethodReturn(Template template, ClassType classType, TypeExpression returnType, IRubyObject receiver) {
|
359
359
|
if (returnType == null) { return TypeSet.EMPTY; }
|
360
360
|
|
@@ -454,7 +454,7 @@ public class AnnotationResolver {
|
|
454
454
|
}
|
455
455
|
return null;
|
456
456
|
}
|
457
|
-
|
457
|
+
|
458
458
|
public boolean resolveMethodReturn(Template template, ClassType classType, TypeExpression returnType, IRubyObject receiver) {
|
459
459
|
if (returnType == null) { return true; }
|
460
460
|
|
@@ -752,7 +752,7 @@ public class RuntimeHelper {
|
|
752
752
|
Logger.debug(SourceLocation.of(node), "template dummy call: %s", method);
|
753
753
|
}
|
754
754
|
|
755
|
-
|
755
|
+
public static Vertex applyTemplateAttribute(Graph graph, CallVertex vertex, String name, TemplateAttribute attr, boolean callSuper) {
|
756
756
|
IRubyObject receiver = attr.getReceiver();
|
757
757
|
IRubyObject[] args = attr.getArgs();
|
758
758
|
RubyClass receiverType = null;
|
@@ -787,7 +787,7 @@ public class RuntimeHelper {
|
|
787
787
|
return null;
|
788
788
|
}
|
789
789
|
|
790
|
-
|
790
|
+
public static Template createTemplate(Graph graph, CallVertex vertex, String name, Method method, TemplateAttribute attr) {
|
791
791
|
IRubyObject receiver = attr.getReceiver();
|
792
792
|
IRubyObject[] args = attr.getArgs();
|
793
793
|
Vertex[] argVertices = new Vertex[args.length];
|
@@ -826,7 +826,7 @@ public class RuntimeHelper {
|
|
826
826
|
return template;
|
827
827
|
}
|
828
828
|
|
829
|
-
|
829
|
+
public static List<TemplateAttribute> generateTemplateAttributes(Collection<IRubyObject> receivers, List<Collection<IRubyObject>> args, Block block) {
|
830
830
|
int size = 1;
|
831
831
|
for (Collection<IRubyObject> c : args) {
|
832
832
|
size *= c.size();
|
@@ -1 +1 @@
|
|
1
|
-
rsense.version = 0.5.
|
1
|
+
rsense.version = 0.5.9
|
data/stubs/1.8/_builtin.rb
CHANGED
@@ -1921,7 +1921,7 @@ class Numeric
|
|
1921
1921
|
end
|
1922
1922
|
|
1923
1923
|
class BasicObject
|
1924
|
-
|
1924
|
+
##% ==(a) -> Boolean
|
1925
1925
|
def ==(other) BOOLEAN end
|
1926
1926
|
##% ===(a) -> Boolean
|
1927
1927
|
def __id__() 0 end
|
@@ -1953,7 +1953,7 @@ class BasicObject
|
|
1953
1953
|
false
|
1954
1954
|
end
|
1955
1955
|
end
|
1956
|
-
|
1956
|
+
|
1957
1957
|
def singleton_method_added(name) end
|
1958
1958
|
|
1959
1959
|
def singleton_method_removed(name) end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsense-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric West
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spoon
|