OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Oprand2
(Results
1 - 2
of
2
) sorted by null
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/
Expression.py
146
def Eval(Operator, Oprand1,
Oprand2
= None):
150
(type(Oprand1) == type('') or type(
Oprand2
) == type('')):
166
if Operator in ["+", "-"] and (type(True) in [type(Oprand1), type(
Oprand2
)]):
169
elif type('') in [type(Oprand1), type(
Oprand2
)] and type(Oprand1)!= type(
Oprand2
):
181
elif TypeDict[type(Oprand1)] != TypeDict[type(
Oprand2
)]:
182
if Operator in ["==", "!=", ">=", "<=", ">", "<"] and set((TypeDict[type(Oprand1)], TypeDict[type(
Oprand2
)])) == set((TypeDict[type(True)], TypeDict[type(0)])):
185
elif Operator in ['&', '|', '^', "and", "or"] and set((TypeDict[type(Oprand1)], TypeDict[type(
Oprand2
)])) == set((TypeDict[type(True)], TypeDict[type(0)])):
190
if type(Oprand1) == type('') and type(
Oprand2
) == type(''):
191
if (Oprand1.startswith('L"') and not
Oprand2
.startswith('L"')) or \
[
all
...]
RangeExpression.py
260
def Rangeintersection(self, Oprand1,
Oprand2
):
262
rangeContainer2 = self.operanddict[
Oprand2
]
293
def Rangecollections(self, Oprand1,
Oprand2
):
296
rangeContainer2 = self.operanddict[
Oprand2
]
348
def Eval(self, Operator, Oprand1,
Oprand2
= None):
358
if not self.ExRegGuidPattern.match(Oprand1.strip()) or not self.ExRegGuidPattern.match(
Oprand2
.strip()):
360
return self.Rangeintersection(Oprand1,
Oprand2
)
362
if not self.ExRegGuidPattern.match(Oprand1.strip()) or not self.ExRegGuidPattern.match(
Oprand2
.strip()):
364
return self.Rangecollections(Oprand1,
Oprand2
)
Completed in 75 milliseconds