|
|
@ -19,6 +19,7 @@ |
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using ICSharpCode.NRefactory.Semantics; |
|
|
|
using ICSharpCode.NRefactory.Semantics; |
|
|
|
|
|
|
|
using ICSharpCode.NRefactory.Utils; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
|
|
|
namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
|
|
|
{ |
|
|
|
{ |
|
|
@ -49,6 +50,9 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
|
|
|
|
|
|
|
|
|
|
|
public object ConstantValue { |
|
|
|
public object ConstantValue { |
|
|
|
get { |
|
|
|
get { |
|
|
|
|
|
|
|
using (var busyLock = BusyManager.Enter(this)) { |
|
|
|
|
|
|
|
if (!busyLock.Success) |
|
|
|
|
|
|
|
return null; |
|
|
|
ResolveResult rr = this.constantValue; |
|
|
|
ResolveResult rr = this.constantValue; |
|
|
|
if (rr == null) { |
|
|
|
if (rr == null) { |
|
|
|
IConstantValue unresolvedCV = ((IUnresolvedField)unresolved).ConstantValue; |
|
|
|
IConstantValue unresolvedCV = ((IUnresolvedField)unresolved).ConstantValue; |
|
|
@ -62,4 +66,5 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|