summaryrefslogtreecommitdiff
path: root/BCT
diff options
context:
space:
mode:
authorGravatar Mike Barnett <mbarnett@microsoft.com>2011-06-01 10:12:07 -0700
committerGravatar Mike Barnett <mbarnett@microsoft.com>2011-06-01 10:12:07 -0700
commit610bcc489484a61dbbdad996c0677780ebaf8339 (patch)
treefb29dfcfebf70a503a66b38df69c4388798bb7f3 /BCT
parentbc85d2a59352098f2b7e09556248fff5b459e51d (diff)
Don't (for now) consider property getters as pure, because
we aren't ready to translate them as functions yet.
Diffstat (limited to 'BCT')
-rw-r--r--BCT/BytecodeTranslator/Sink.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/BCT/BytecodeTranslator/Sink.cs b/BCT/BytecodeTranslator/Sink.cs
index 127317e9..4d546eb4 100644
--- a/BCT/BytecodeTranslator/Sink.cs
+++ b/BCT/BytecodeTranslator/Sink.cs
@@ -600,8 +600,10 @@ namespace BytecodeTranslator {
// also, should it return true for properties and all of the other things the tools
// consider pure?
private bool IsPure(IMethodDefinition method) {
- bool isPropertyGetter = method.IsSpecialName && method.Name.Value.StartsWith("get_");
- if (isPropertyGetter) return true;
+ // TODO:
+ // This needs to wait until we get function bodies sorted out.
+ //bool isPropertyGetter = method.IsSpecialName && method.Name.Value.StartsWith("get_");
+ //if (isPropertyGetter) return true;
foreach (var a in method.Attributes) {
if (TypeHelper.GetTypeName(a.Type).EndsWith("PureAttribute")) {