Lines Matching refs:node

33   def VisitFilter(self, node, data):
34 __pychecker__ = 'unusednames=node,data'
35 return not node.IsA('Comment', 'Copyright')
37 def Arrive(self, node, errors):
38 __pychecker__ = 'unusednames=node,errors'
40 if node.IsA('Interface', 'Member', 'Struct', 'Enum', 'EnumItem', 'Typedef'):
41 comments = node.GetListOf('Comment')
42 if not comments and not node.GetProperty('wcomment'):
43 node.Warning('Expecting a comment.')
46 if node.IsA('File'):
47 labels = node.GetListOf('Label')
48 interfaces = node.GetListOf('Interface')
50 node.Warning('Expecting a label in a file containing interfaces.')
52 if node.IsA('Struct', 'Typedef') and not node.GetProperty('wpass'):
53 if node.GetProperty('passByValue'):
57 if node.GetProperty('returnByValue'):
62 node.Warning('%s passByValue but %s returnByValue.' % (pbv, ret))
65 if node.IsA('EnumItem'):
66 if not node.GetProperty('VALUE') and not node.GetProperty('wenum'):
67 node.Warning('Expecting value for enumeration.')
70 if node.IsA('Interface'):
71 macro = node.GetProperty('macro')
72 if macro and not node.GetProperty('wname'):
73 node.Warning('Interface name inconsistent: %s' % macro)
76 if node.IsA('Inline') and not node.GetProperty('winline'):
77 inline_type = node.GetProperty('NAME')
78 node.parent.Warning('Requires an inline %s block.' % inline_type)
81 if node.IsA('Callspec') and not node.GetProperty('wparam'):
83 for arg in node.GetListOf('Param'):
90 if node.IsA('Param') and not node.GetProperty('wparam'):
93 if node.GetProperty(form): found = True
95 node.Warning('Missing argument type: [in|out|inout]')
100 def Depart(self, node, warnings, childdata):
101 __pychecker__ = 'unusednames=node'