Questions tagged [generated-code]

231 questions
3
votes
1 answer

How can I suppress warnings in generated code?

I'm building a lexer and parser with Alex and Happy. The code they generate throws a huge number of warnings with ghc-options: -Wall turned on in my project's .cabal file. This makes it difficult to catch real warnings. How can I turn off the…
Patrick Collins
  • 10,306
  • 5
  • 30
  • 69
3
votes
2 answers

Many WebReferences Using Same Class

I have a C# project which has many web references to a third party product. All of these web service calls use a 'user context' class. So each web service accepts the exact same XML snippet. Currently I have to keep many of these 'user context'…
3
votes
3 answers

Problems by import of a multiple modules maven 2 project into eclipse workspace

I was wondering if someone has experienced the same problem as me and can help me. I have a maven project which contains 6 modules. Some of modules are depending on each other. The project is written in Java and builds to jars, wars and aar. I've…
Mike
  • 31
  • 2
3
votes
3 answers

Why is using Java unsafe in Unmanned Aerial Vehicles?

I am using Java on a UAV project, and have been told that it is often not used when designing military UAVs due to safety concerns. Why is this? I know it has something to do with the fact that it generates it's own code, but can anyone with…
Aero
  • 61
  • 4
3
votes
1 answer

Code generator for dart

I need to do mapper between dart and JS object. I don't like to write "unncessary' code so I would like DartEditor wrote it for me :) What i would like to write: DartInvoice extends jsw.TypedProxy { @Parser(attributName="invoice") …
Bzik
  • 78
  • 7
3
votes
2 answers

Can I add MVC 2 DataAnnotation attributes to existing properties?

I'm using a generated class as a model, and I wish to add DataAnnotation attributes to some of its properties. As it's a generated code, I don't want to add the annotations directly. Is there another way to attach them to a property? I'd considered…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
3
votes
3 answers

Is there an add-on to view the CURRENT source of an HTML page after AJAX components have been triggered?

In Firefox (Windows) when you view source from the browser it will not update the source on a page if certain AJAX components have changed. An example is you navigate to the page and it fully loads. An AJAX component triggers and changes the…
Nish
  • 385
  • 1
  • 5
  • 19
3
votes
1 answer

Where is Ruby code, generated via metaprogramming, stored, and is it viewable/printable?

I've just started learning about metaprogramming in Ruby, and found myself wondering if it was possible to view (in someway) the code that had been generated. I want to, as a coding exercise, write a short method that will generate a Ruby file…
Daniel Brady
  • 934
  • 3
  • 11
  • 27
3
votes
1 answer

Generate getters and setters for PHP in Enterprise Architect

I'm using Enterprise Architect to make a UML class diagram and generate PHP5 code. How can I generate getter and setter methods for a certain class?
user1544337
3
votes
2 answers

Eclipse CDT generated getters / setters name

Is there a way (either via the UI, or in config files) to change the names of the C++ getters/setters generated by Eclipse CDT from the Java-style getSomething() to the more C++ like something() ?
galileoMonkey
  • 715
  • 6
  • 12
3
votes
1 answer

Split emscripten generated file

I have a very big Javascript file (> 50MB) generated by Emscripten (Debug mode). Debugging this file is a pain in the browser. A solution would be to split the file in several small files. Loading time is no issue, because it is a debug build. Any…
Lars Schneider
  • 5,530
  • 4
  • 33
  • 58
3
votes
1 answer

Generate source using jaxb from an xsd that is in my classpath

I'm trying to generate java classes using JAXB from a schema in my class path. For CXF I generated java classes from a wsdl in my classpath like so: classpath:wsdl/MetsInterfaceService.wsdl
Sal Velazquez
  • 189
  • 2
  • 11
3
votes
1 answer

Generate and compile name to index translation/mapping for faster reusability

Suppose I get data from a service (that I can't control) as: public class Data { // an array of column names public string[] ColumnNames { get; set; } // an array of rows that contain arrays of strings as column values public…
Robert Koritnik
  • 103,639
  • 52
  • 277
  • 404
2
votes
1 answer

In which cases compiler generates additional code in C#?

So I've been inspecting some 3rd party assembly with ILSpy & dnSpy and noticed various compiler generated classes and methods. Some examples: Getter syntax like public Value { get; set; } is changed into: [CompilerGenerated] public int…
Vladyslav
  • 786
  • 4
  • 19
2
votes
2 answers

How do I remove format from Linq property?

I´m building a Windows Forms aplication using LINQ to SQL. I´m using the auto generated code from the dbml file. Visual studio generated this code for the CNPJ property from my…
Fabio
  • 1,037
  • 1
  • 10
  • 22