From f1a2caeb120cf32688c18c4956dba63645468e2f Mon Sep 17 00:00:00 2001 From: James Strachan Date: Wed, 11 Apr 2012 09:05:17 +0100 Subject: [PATCH] fix helper function to find NamespaceDescriptor in a file - thanks to Nikolay for the heads up --- .../src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java index 7b2929a30be..a7061770adf 100644 --- a/compiler/frontend/src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java +++ b/compiler/frontend/src/org/jetbrains/jet/lang/resolve/BindingContextUtils.java @@ -79,7 +79,7 @@ public class BindingContextUtils { @Nullable public static NamespaceDescriptor namespaceDescriptor(@NotNull BindingContext context, @NotNull JetFile source) { - return context.get(BindingContext.NAMESPACE, source); + return context.get(BindingContext.FILE_TO_NAMESPACE, source); } @Nullable