@@ -49,8 +49,8 @@ export 'package:analyzer/src/generated/utilities_dart.dart';
4949@Deprecated ('Please use parseString instead' )
5050CompilationUnit parseCompilationUnit (String contents,
5151 {String name,
52- bool suppressErrors: false ,
53- bool parseFunctionBodies: true ,
52+ bool suppressErrors = false ,
53+ bool parseFunctionBodies = true ,
5454 FeatureSet featureSet}) {
5555 // TODO(paulberry): make featureSet a required parameter
5656 featureSet ?? = FeatureSet .fromEnableFlags ([]);
@@ -74,8 +74,8 @@ CompilationUnit parseCompilationUnit(String contents,
7474/// callers that don't require function bodies should simply ignore them.
7575@Deprecated ('Please use parseFile2 instead' )
7676CompilationUnit parseDartFile (String path,
77- {bool suppressErrors: false ,
78- bool parseFunctionBodies: true ,
77+ {bool suppressErrors = false ,
78+ bool parseFunctionBodies = true ,
7979 FeatureSet featureSet}) {
8080 // TODO(paulberry): Make featureSet a required parameter
8181 featureSet ?? = FeatureSet .fromEnableFlags ([]);
@@ -115,7 +115,7 @@ CompilationUnit parseDartFile(String path,
115115/// directives should simply ignore the rest of the parse result.
116116@Deprecated ('Please use parseString instead' )
117117CompilationUnit parseDirectives (String contents,
118- {String name, bool suppressErrors: false , FeatureSet featureSet}) {
118+ {String name, bool suppressErrors = false , FeatureSet featureSet}) {
119119 // TODO(paulberry): make featureSet a required parameter.
120120 featureSet ?? = FeatureSet .fromEnableFlags ([]);
121121 var source = new StringSource (contents, name);
@@ -141,7 +141,7 @@ String stringLiteralToString(StringLiteral literal) {
141141
142142CompilationUnit _parseSource (
143143 String contents, Source source, FeatureSet featureSet,
144- {bool suppressErrors: false , bool parseFunctionBodies: true }) {
144+ {bool suppressErrors = false , bool parseFunctionBodies = true }) {
145145 var reader = new CharSequenceReader (contents);
146146 var errorCollector = new _ErrorCollector ();
147147 var scanner = new Scanner (source, reader, errorCollector)
0 commit comments