Bug 3670 (part 3/5): Use of new statement parser in yang-maven-plugin
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / effective / ModuleEffectiveStatementImpl.java
index 95f6a15c8d2a35144d533be6688694156bab2d99..ebbac6d177c55c3b7c333f2f11fef58055c19fe8 100644 (file)
@@ -118,10 +118,9 @@ public class ModuleEffectiveStatementImpl extends
             yangVersion = "1";
         }
 
-        sourcePath = ((DeclarationInTextSource) ctx
-                .getStatementSourceReference()).getSourceName();
-        // TODO source
-        // source =
+        DeclarationInTextSource sourceReference = (DeclarationInTextSource) ctx.getStatementSourceReference();
+        sourcePath = sourceReference.getSourceName();
+        source = sourceReference.getSourceText();
 
         initSubmodules(ctx);
         initSubstatementCollections(ctx);