void () { checkAsQualifiedNameResult("foo.bar.baz", QualifiedName.fromDottedString("foo.bar.baz")); checkAsQualifiedNameResult("foo().bar.baz", null); checkAsQualifiedNameResult("foo.bar[0]", QualifiedName.fromDottedString("foo.bar.__getitem__")); checkAsQualifiedNameResult("foo[0].bar", null); checkAsQualifiedNameResult("foo[0][0]", null); checkAsQualifiedNameResult("-foo.bar", QualifiedName.fromDottedString("foo.bar.__neg__")); checkAsQualifiedNameResult("foo + bar", QualifiedName.fromDottedString("foo.__add__")); checkAsQualifiedNameResult("foo + bar + baz", null); checkAsQualifiedNameResult("foo.bar + baz", QualifiedName.fromDottedString("foo.bar.__add__")); checkAsQualifiedNameResult("-foo + bar", null); }