{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/8","labels_url":"https://api.github.com/repos/dart-lang/dart_style/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/dart_style/issues/8/comments","events_url":"https://api.github.com/repos/dart-lang/dart_style/issues/8/events","html_url":"https://github.com/dart-lang/dart_style/issues/8","id":48036675,"number":8,"title":"If one argument in an argument list is multiline, surrounding arguments should have their own lines","user":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-07T01:16:23Z","updated_at":"2015-01-14T18:44:39Z","closed_at":null,"body":"Currently,\r\n\r\n```dart\r\n_log(new LogEntry(error.transform, error.transform.primaryId,\r\n        LogLevel.ERROR, message, null),\r\n    arg);\r\n```\r\n\r\nis formatted as\r\n\r\n```dart\r\n_log(new LogEntry(error.transform, error.transform.primaryId, LogLevel.ERROR,\r\n    message, null), arg);\r\n```\r\n\r\nThe second argument to `_log` is hidden after the long argument list for `new LogEntry()`. If one argument is multi-line, no part of it should be on the same line as other arguments."},"comment":{"url":"https://api.github.com/repos/dart-lang/dart_style/issues/comments/69967954","html_url":"https://github.com/dart-lang/dart_style/issues/8#issuecomment-69967954","issue_url":"https://api.github.com/repos/dart-lang/dart_style/issues/8","id":69967954,"user":{"login":"munificent","id":46275,"avatar_url":"https://avatars.githubusercontent.com/u/46275?v=3","gravatar_id":"","url":"https://api.github.com/users/munificent","html_url":"https://github.com/munificent","followers_url":"https://api.github.com/users/munificent/followers","following_url":"https://api.github.com/users/munificent/following{/other_user}","gists_url":"https://api.github.com/users/munificent/gists{/gist_id}","starred_url":"https://api.github.com/users/munificent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/munificent/subscriptions","organizations_url":"https://api.github.com/users/munificent/orgs","repos_url":"https://api.github.com/users/munificent/repos","events_url":"https://api.github.com/users/munificent/events{/privacy}","received_events_url":"https://api.github.com/users/munificent/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T18:44:39Z","updated_at":"2015-01-14T18:44:39Z","body":"Look at `includeSuperAndInjectedMembers` in before:\r\n\r\n```dart\r\n    classElement.forEachInstanceField(\r\n        (ClassElement enclosingClass, VariableElement member) {\r\n          HInstruction value = fieldValues[member];\r\n          if (value == null) {\r\n            // Uninitialized native fields are pre-initialized by the native\r\n            // implementation.\r\n            assert(isNativeUpgradeFactory);\r\n          } else {\r\n            fields.add(member);\r\n            DartType type = localsHandler.substInContext(member.type);\r\n            constructorArguments.add(potentiallyCheckOrTrustType(value, type));\r\n          }\r\n        },\r\n        includeSuperAndInjectedMembers: true);\r\n```\r\n\r\nAnd after:\r\n\r\n```dart\r\n    classElement.forEachInstanceField(\r\n        (ClassElement enclosingClass, VariableElement member) {\r\n          HInstruction value = fieldValues[member];\r\n          if (value == null) {\r\n            // Uninitialized native fields are pre-initialized by the native\r\n            // implementation.\r\n            assert(isNativeUpgradeFactory);\r\n          } else {\r\n            fields.add(member);\r\n            DartType type = localsHandler.substInContext(member.type);\r\n            constructorArguments.add(potentiallyCheckOrTrustType(value, type));\r\n          }\r\n        },\r\n        includeSuperAndInjectedMembers: true);\r\n      HInstruction value = fieldValues[member];\r\n      if (value == null) {\r\n        // Uninitialized native fields are pre-initialized by the native\r\n        // implementation.\r\n        assert(isNativeUpgradeFactory);\r\n      } else {\r\n        fields.add(member);\r\n        DartType type = localsHandler.substInContext(member.type);\r\n        constructorArguments.add(potentiallyCheckOrTrustType(value, type));\r\n      }\r\n    }, includeSuperAndInjectedMembers: true);\r\n```"}}