X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scl.compiler%2Fsrc%2Forg%2Fsimantics%2Fscl%2Fcompiler%2Felaboration%2Fcontexts%2FTranslationContext.java;h=0e7df755c3a5eede4b52db6b355611afe3fd7708;hp=b71c0ad276e69937fbde4d6be0969954b3dd151d;hb=b2561fc60dbe74e8c332025b61cae104f5ccfc66;hpb=60887e497000cd31f5e5f2008d681b8612a21d26 diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/contexts/TranslationContext.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/contexts/TranslationContext.java index b71c0ad27..0e7df755c 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/contexts/TranslationContext.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/elaboration/contexts/TranslationContext.java @@ -201,7 +201,7 @@ public class TranslationContext extends TypeTranslationContext implements Enviro if(deprecatedDescription != null) errorLog.logWarning(location, "Deprecated value " + value.getName().name + "." + (deprecatedDescription.isEmpty() ? "" : " " + deprecatedDescription)); if(moduleDebugInfo != null) - moduleDebugInfo.symbolReferences.add(new SymbolReference(value.getName(), definitionName, location)); + moduleDebugInfo.symbolReferences.add(new SymbolReference(value.getName(), Name.create(compilationContext.module.getName(), definitionName), location)); return new EConstant(location, value); } catch (AmbiguousNameException e) { if(SCLCompilerConfiguration.ALLOW_OVERLOADING) @@ -229,7 +229,7 @@ public class TranslationContext extends TypeTranslationContext implements Enviro EConstant expression = new EConstant(altValue); expression.location = location; if(moduleDebugInfo != null) - moduleDebugInfo.symbolReferences.add(new SymbolReference(altValue.getName(), definitionName, location)); + moduleDebugInfo.symbolReferences.add(new SymbolReference(altValue.getName(), Name.create(compilationContext.module.getName(), definitionName), location)); return expression; }