[nem-en] What is additional_decls?

vc vc at rsdn.ru
Fri Nov 17 23:07:09 CET 2006


> So I understand you end up with TypeBuilder, for which Record macro
> generated incorrect constructor. Is this happening during first time
> Hierarchy.Run is executed or after that?

It's happening in Hierarchy.Run() in
http://nemerle.org/svn/vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Comple
tion2/Engine/Engine-main.n
at line 78

Callstack:
Nemerle.Core.Record_type_postaddMacro.Run(...)
Nemerle.Compiler.TypesManager.AttributeMacroExpansion.Expand()
Nemerle.Compiler.TypesManager.ExpandMacros()
Nemerle.Compiler.TypeBuilder.process_macro_attributes(Nemerle.MacroPhase
stage 
  = BeforeInheritance | BeforeTypedMembers)
Nemerle.Compiler.TypesManager._N__N_l28318_28404.apply_void(...)
Nemerle.Compiler.TypesManager._N_maybe_f_28575.apply_void(...)
Nemerle.Collections.List.Iter<Nemerle.Compiler.TypeBuilder>(...)
Nemerle.Core.list<Nemerle.Compiler.TypeBuilder>.Iter(
  Nemerle.Builtins.FunctionVoid<Nemerle.Compiler.TypeBuilder> 
  f = {Nemerle.Compiler.TypesManager._N_maybe_f_28575})
Nemerle.Compiler.TypesManager.Iter(...)
Nemerle.Compiler.TypesManager.Iter(...)
Nemerle.Compiler.TypesManager.Run()
Nemerle.Completion2.Engine.BuildTypedtreeAndInitProject()


> Does it happen always?

Yes, always?

> I still suspect this has something to do with partial classes.

May be. But it happen only in VS Integration.

> I will try to set up the environment for VS integration tomorrow. 

Very well! :)
Instructions here:
http://rsdn.ru/article/nemerle/Nemerle.VsIntegration-en.xml
It's old. But it's better than nothing. :)


> If
> you can provide some small example / reproduction project it would be
> helpful to find the problem.

We use same project (Nemerle.Compiler.Utils) for debugging:
http://nemerle.org/svn/vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Compil
er.Utils.nproj

Open it under experimental hive of VS 2005 and open in it the file:
http://nemerle.org/svn/vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Comple
tion2/Engine/Engine-main.n

In line 123 you see error.






More information about the devel-en mailing list