Ejemplo n.º 1
0
 public static void initDefaultSourceMappingIfNeeded(
     @NotNull CodegenContext context,
     @NotNull MemberCodegen codegen,
     @NotNull GenerationState state) {
   if (state.isInlineEnabled()) {
     CodegenContext<?> parentContext = context.getParentContext();
     while (parentContext != null) {
       if (parentContext instanceof MethodContext) {
         if (((MethodContext) parentContext).isInlineFunction()) {
           // just init default one to one mapping
           codegen.getOrCreateSourceMapper();
           break;
         }
       }
       parentContext = parentContext.getParentContext();
     }
   }
 }
Ejemplo n.º 2
0
 @NotNull
 @Override
 public NameGenerator getInlineNameGenerator() {
   return delegate.getInlineNameGenerator();
 }