@@ -281,7 +281,7 @@ let CheckFSharpAttributes (g:TcGlobals) attribs m =
281281 | Some _ ->
282282 do ! WarnD( ObsoleteWarning( " " , m))
283283 | None ->
284- do ! CompleteD
284+ ()
285285
286286 match TryFindFSharpAttribute g g.attrib_ CompilerMessageAttribute attribs with
287287 | Some( Attrib(_, _, [ AttribStringArg s ; AttribInt32Arg n ], namedArgs, _, _, _)) ->
@@ -292,11 +292,14 @@ let CheckFSharpAttributes (g:TcGlobals) attribs m =
292292 | _ -> false
293293 // If we are using a compiler that supports nameof then error 3501 is always suppressed.
294294 // See attribute on FSharp.Core 'nameof'
295- if n = 3501 then do ! CompleteD
296- elif isError && ( not g.compilingFSharpCore || n <> 1204 ) then do ! ErrorD msg
297- else do ! WarnD msg
295+ if n = 3501 then
296+ ()
297+ elif isError && ( not g.compilingFSharpCore || n <> 1204 ) then
298+ do ! ErrorD msg
299+ else
300+ do ! WarnD msg
298301 | _ ->
299- do ! CompleteD
302+ ()
300303
301304 match TryFindFSharpAttribute g g.attrib_ ExperimentalAttribute attribs with
302305 | Some( Attrib(_, _, [ AttribStringArg( s) ], _, _, _, _)) ->
@@ -305,20 +308,18 @@ let CheckFSharpAttributes (g:TcGlobals) attribs m =
305308 true
306309 else
307310 g.langVersion.IsPreviewEnabled && ( s.IndexOf( langVersionPrefix, StringComparison.OrdinalIgnoreCase) >= 0 )
308- if isExperimentalAttributeDisabled s then
309- do ! CompleteD
310- else
311+ if not ( isExperimentalAttributeDisabled s) then
311312 do ! WarnD( Experimental( s, m))
312313 | Some _ ->
313314 do ! WarnD( Experimental( FSComp.SR.experimentalConstruct (), m))
314315 | _ ->
315- do ! CompleteD
316+ ()
316317
317318 match TryFindFSharpAttribute g g.attrib_ UnverifiableAttribute attribs with
318319 | Some _ ->
319320 do ! WarnD( PossibleUnverifiableCode( m))
320321 | _ ->
321- do ! CompleteD
322+ ()
322323 }
323324
324325#if ! NO_ TYPEPROVIDERS
@@ -418,7 +419,8 @@ let CheckMethInfoAttributes g m tyargsOpt (minfo: MethInfo) =
418419 trackErrors {
419420 match stripTyEqns g minfo.ApparentEnclosingAppType with
420421 | TType_ app( tcref, _, _) -> do ! CheckEntityAttributes g tcref m
421- | _ -> do ! CompleteD
422+ | _ -> ()
423+
422424 let search =
423425 BindMethInfoAttributes m minfo
424426 ( fun ilAttribs -> Some( CheckILAttributes g false ilAttribs m))
@@ -428,8 +430,6 @@ let CheckMethInfoAttributes g m tyargsOpt (minfo: MethInfo) =
428430 do ! CheckFSharpAttributes g fsAttribs m
429431 if Option.isNone tyargsOpt && HasFSharpAttribute g g.attrib_ RequiresExplicitTypeArgumentsAttribute fsAttribs then
430432 do ! ErrorD( Error( FSComp.SR.tcFunctionRequiresExplicitTypeArguments( minfo.LogicalName), m))
431- else
432- do ! CompleteD
433433 }
434434
435435 Some res)
@@ -440,7 +440,7 @@ let CheckMethInfoAttributes g m tyargsOpt (minfo: MethInfo) =
440440#endif
441441 match search with
442442 | Some res -> do ! res
443- | None -> do ! CompleteD // no attribute = no errors
443+ | None -> () // no attribute = no errors
444444}
445445
446446/// Indicate if a method has 'Obsolete', 'CompilerMessageAttribute' or 'TypeProviderEditorHideMethodsAttribute'.
0 commit comments