question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Constructor parameters and properties defined in constructor

See original GitHub issue

The parser now handles “escaped” characters inside annotations’ values but I have found another missing node.

The AST does not contain constructor parameters and properties declared in constructor e.g.:

class TestClass(
    @Value("test value")
    private val propertyA: String
)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
martinflorekcommented, Oct 21, 2019

Sorry, this is not true. The constructor works OK and I have other special case that is causing the crash with summary(). I will try to isolate it into a small test case.

0reactions
driekscommented, Nov 6, 2019

I think this issue is resolved now, like #2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

constructor - JavaScript - MDN Web Docs - Mozilla
The constructor method is a special method of a class for creating and initializing an object instance of that class.
Read more >
Lesson 08.1 – Setting properties with a class constructor
When you run a function, or method (like a constructor), it can accept values. These are called parameters. In C#, you need to...
Read more >
2.2. Creating and Initializing Objects: Constructors
Summary. Constructors initialize the attributes in newly created objects. They have the same name as the class. A constructor signature is the constructor...
Read more >
JavaScript Constructors: What You Need to Know - Rollbar
The purpose of a constructor is to create a new object and set values for any existing object properties.
Read more >
Entity types with constructors - EF Core - Microsoft Learn
The constructor parameters can be bound to mapped properties, or to various kinds of services to facilitate behaviors like lazy-loading.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found