Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / libgo / go / go / ast / import.go
index 2d4f69a..a68a484 100644 (file)
@@ -20,7 +20,7 @@ func SortImports(fset *token.FileSet, f *File) {
                        break
                }
 
-               if d.Lparen == token.NoPos {
+               if !d.Lparen.IsValid() {
                        // Not a block: sorted by default.
                        continue
                }