Page MenuHomePhabricator

Fix class attribute node in anonymous class
ClosedPublic

Authored by wjiang on Oct 9 2018, 1:39 AM.
Tags
None
Referenced Files
F15503411: D19740.id47162.diff
Mon, Apr 14, 9:46 AM
F15502674: D19740.id47162.diff
Mon, Apr 14, 3:05 AM
F15492532: D19740.id.diff
Sat, Apr 12, 3:30 PM
F15490833: D19740.diff
Fri, Apr 11, 8:57 PM
F15481088: D19740.id.diff
Tue, Apr 8, 6:04 PM
F15467027: D19740.id48926.diff
Thu, Apr 3, 11:55 AM
F15412080: D19740.id47162.diff
Wed, Mar 19, 11:12 AM
F15398170: D19740.id48926.diff
Sun, Mar 16, 11:37 PM

Details

Summary

Ref T4334. The class attribute node of an anonymous class should be n_EMPTY.

Test Plan

Tested with phabricator xhpast view

1.png (324×475 px, 14 KB)

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningsupport/xhpast/xhpast.cpp:0Cppchecktoomanyconfigs
Unit
Tests Passed
Build Status
Buildable 21005
Build 28534: arc lint + arc unit

Event Timeline

wjiang requested review of this revision.Oct 9 2018, 1:39 AM

I think maybe we should keep it as an empty n_CLASS_ATTRIBUTES in case attributes are added later.

I think maybe we should keep it as an empty n_CLASS_ATTRIBUTES in case attributes are added later.

Hmm.. I doubt that'll happen as anonymous class can never be extended.

@epriestley, would you mind taking a look at this diff?

This revision is now accepted and ready to land.May 14 2019, 2:21 PM
This revision was landed with ongoing or failed builds.May 15 2019, 12:55 AM
This revision was automatically updated to reflect the committed changes.