Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
PRESUBMIT._WarningsAsErrors Class Reference

Public Member Functions

def __init__ (self, output_api)
 
def __enter__ (self)
 
def __exit__ (self, ex_type, ex_value, ex_traceback)
 

Public Attributes

 output_api
 
 old_warning
 

Detailed Description

Definition at line 212 of file PRESUBMIT.py.

Constructor & Destructor Documentation

◆ __init__()

def PRESUBMIT._WarningsAsErrors.__init__ (   self,
  output_api 
)

Definition at line 213 of file PRESUBMIT.py.

213 def __init__(self, output_api):
214 self.output_api = output_api
215 self.old_warning = None

Member Function Documentation

◆ __enter__()

def PRESUBMIT._WarningsAsErrors.__enter__ (   self)

Definition at line 216 of file PRESUBMIT.py.

216 def __enter__(self):
217 self.old_warning = self.output_api.PresubmitPromptWarning
218 self.output_api.PresubmitPromptWarning = self.output_api.PresubmitError
219 return self.output_api

◆ __exit__()

def PRESUBMIT._WarningsAsErrors.__exit__ (   self,
  ex_type,
  ex_value,
  ex_traceback 
)

Definition at line 220 of file PRESUBMIT.py.

220 def __exit__(self, ex_type, ex_value, ex_traceback):
221 self.output_api.PresubmitPromptWarning = self.old_warning
222
223

Member Data Documentation

◆ old_warning

PRESUBMIT._WarningsAsErrors.old_warning

Definition at line 215 of file PRESUBMIT.py.

◆ output_api

PRESUBMIT._WarningsAsErrors.output_api

Definition at line 214 of file PRESUBMIT.py.


The documentation for this class was generated from the following file: