Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
scan_deps.VarImpl Class Reference

Public Member Functions

def __init__ (self, local_scope)
 
def lookup (self, var_name)
 

Detailed Description

Definition at line 35 of file scan_deps.py.

Constructor & Destructor Documentation

◆ __init__()

def scan_deps.VarImpl.__init__ (   self,
  local_scope 
)

Definition at line 41 of file scan_deps.py.

41 def __init__(self, local_scope):
42 self._local_scope = local_scope
43

Member Function Documentation

◆ lookup()

def scan_deps.VarImpl.lookup (   self,
  var_name 
)
Implements the Var syntax.

Definition at line 44 of file scan_deps.py.

44 def lookup(self, var_name):
45 """Implements the Var syntax."""
46 if var_name in self._local_scope.get('vars', {}):
47 return self._local_scope['vars'][var_name]
48 # Inject default values for env variables.
49 if var_name in self._env_vars:
50 return self._env_vars[var_name]
51 raise Exception('Var is not defined: %s' % var_name)
52
53
const myers::Point & get(const myers::Segment &)

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