OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 28 matching lines...) Expand all Loading... |
39 import com.google.dart.engine.internal.context.RecordingErrorListener; | 39 import com.google.dart.engine.internal.context.RecordingErrorListener; |
40 import com.google.dart.engine.internal.element.ExportElementImpl; | 40 import com.google.dart.engine.internal.element.ExportElementImpl; |
41 import com.google.dart.engine.internal.element.HideCombinatorImpl; | 41 import com.google.dart.engine.internal.element.HideCombinatorImpl; |
42 import com.google.dart.engine.internal.element.ImportElementImpl; | 42 import com.google.dart.engine.internal.element.ImportElementImpl; |
43 import com.google.dart.engine.internal.element.LibraryElementImpl; | 43 import com.google.dart.engine.internal.element.LibraryElementImpl; |
44 import com.google.dart.engine.internal.element.PrefixElementImpl; | 44 import com.google.dart.engine.internal.element.PrefixElementImpl; |
45 import com.google.dart.engine.internal.element.ShowCombinatorImpl; | 45 import com.google.dart.engine.internal.element.ShowCombinatorImpl; |
46 import com.google.dart.engine.internal.error.ErrorReporter; | 46 import com.google.dart.engine.internal.error.ErrorReporter; |
47 import com.google.dart.engine.internal.verifier.ConstantVerifier; | 47 import com.google.dart.engine.internal.verifier.ConstantVerifier; |
48 import com.google.dart.engine.internal.verifier.ErrorVerifier; | 48 import com.google.dart.engine.internal.verifier.ErrorVerifier; |
| 49 import com.google.dart.engine.internal.verifier.PubVerifier; |
49 import com.google.dart.engine.sdk.DartSdk; | 50 import com.google.dart.engine.sdk.DartSdk; |
50 import com.google.dart.engine.source.Source; | 51 import com.google.dart.engine.source.Source; |
51 import com.google.dart.engine.utilities.instrumentation.Instrumentation; | 52 import com.google.dart.engine.utilities.instrumentation.Instrumentation; |
52 import com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder; | 53 import com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder; |
53 | 54 |
54 import java.util.ArrayList; | 55 import java.util.ArrayList; |
55 import java.util.HashMap; | 56 import java.util.HashMap; |
56 import java.util.HashSet; | 57 import java.util.HashSet; |
57 import java.util.Set; | 58 import java.util.Set; |
58 | 59 |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); | 774 ErrorReporter errorReporter = new ErrorReporter(errorListener, source); |
774 CompilationUnit unit = library.getAST(source); | 775 CompilationUnit unit = library.getAST(source); |
775 | 776 |
776 ErrorVerifier errorVerifier = new ErrorVerifier( | 777 ErrorVerifier errorVerifier = new ErrorVerifier( |
777 errorReporter, | 778 errorReporter, |
778 library.getLibraryElement(), | 779 library.getLibraryElement(), |
779 typeProvider, | 780 typeProvider, |
780 library.getInheritanceManager()); | 781 library.getInheritanceManager()); |
781 unit.accept(errorVerifier); | 782 unit.accept(errorVerifier); |
782 | 783 |
| 784 unit.accept(new PubVerifier(errorReporter)); |
| 785 |
783 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, ty
peProvider); | 786 ConstantVerifier constantVerifier = new ConstantVerifier(errorReporter, ty
peProvider); |
784 unit.accept(constantVerifier); | 787 unit.accept(constantVerifier); |
785 } | 788 } |
786 } | 789 } |
787 } | 790 } |
OLD | NEW |