DartEditor error highlighting wrong #12100
Labels
analyzer-recovery
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by joh...@johnmccutchan.com
By adding an extra ")" character the editor error highlighting goes nuts giving me many false errors. Removing the extra ")" clears it up. The VM's parser correctly identified the error as the extra ")" character.
See two screenshots. Text here:
final Map<String, AttributeConstructor> spectreAttributeDefinitions = {
'fieldOfViewY': () => new SpectreElementAttributeDouble('fieldOfViewY',
0.785398163),
'position': () => new SpectreElementAttributeVector3('position',
new Vector3(1.0, 1.0,
1.0)),
'upDirection': () => new SpectreElementAttributeVector3('upDirection',
new Vector3(0.0, 1.0,
0.0)),
'viewDirection': () =>
new SpectreElementAttributeVector3('viewDirection',
new Vector3(-0.33333, -0.33333,
-0.33333)),
'zNear': () => new SpectreElementAttributeDouble('zNear', 0.5),
'zFar': () => new SpectreElementAttributeDouble('zFar', 1000.0),
};
Attachments:
with.png (327.41 KB)
without.png (320.03 KB)
The text was updated successfully, but these errors were encountered: