Questions tagged [compiler-generated]

22 questions
1
vote
1 answer

Can a trivial type class be copied when not all its members are initialized?

(I just realized I first need to solve a much more basic issue with copying unions: When a union object is copied, is a member subobject created?. Please see that other question first.) The implicitly generated copy operations (constructor and…
curiousguy
  • 8,038
  • 2
  • 40
  • 58
0
votes
1 answer

Expression, Constant List, Compiler generated calss

I have this simple code: public void MyWhere( Expression> predicate) { } List Indexes2 = new List(); Indexes2.Add("abc"); MyWhere(a=>Index2.Contains(a.a1)); While parsing the expression, that Index2 appears as a…
0
votes
1 answer

How can I test an input condition after translating the source code using Coco/R?

I have a function that I want to test in Swift. It has been generated using Coco/R. I have an input statement which I want to test if it provides the desired output using the generated code (Parser.swift). I haven't tried anything out yet since I…
curiously77
  • 225
  • 1
  • 4
  • 24
0
votes
1 answer

Failed to compile code due to <, > and $ symbols

I have a C# code of an assembly which fails to build in visual studio. After some research I found out all these errors are caused by <, > and $ symbols. Analyzing the assembly in .NET reflector turns out these parts of the code were created by the…
0
votes
1 answer

Netbeans regenerates broken code in TopComponent. How do I fix this?

I've been dealing with this for over a week, and now it's beginning to impede my productivity. I have a JTextBox that I am applying a custom document filter to. To add this, I right-clicked on the control, went into Customize Code, and added this…
UtMan88
  • 35
  • 8
0
votes
1 answer

C# events - any way for reflection to distinguish simple events from those with add{...} remove {...}?

Okey, I solved this when i was just about to post here. I was looking for a way to distinguish between something like event Action testEvt1; and event Action testEvt1 { add { } remove { }} with reflection, since both end up as a pair of…
Ivan Koshelev
  • 3,830
  • 2
  • 30
  • 50
-2
votes
1 answer

Why property does not use the same name for backing field in this compiler generated code?

Why is the code below using a string_1 instead of straight using FileName? And when would compiler generate code? What kind of source code or configuration of compiler (or anything else) would cause the [compiler generated]…
li yixiao
  • 59
  • 4
1
2