CodeSmell - private members (#219)

https://sonarcloud.io/project/issues?branch=travisMoka&id=Achie72_escargot&resolved=false&rules=cpp%3AS3656&severities=CRITICAL

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
kisbg 2019-05-02 14:09:37 +02:00 committed by yichoi
commit 958b2935a1
10 changed files with 15 additions and 15 deletions

View file

@ -43,7 +43,7 @@ public:
}
virtual ASTNodeType type() { return ASTNodeType::ArrowParameterPlaceHolder; }
protected:
private:
ExpressionNodeVector m_params;
};

View file

@ -51,7 +51,7 @@ public:
m_consequent->generateStatementByteCode(codeBlock, context);
}
protected:
private:
RefPtr<ExpressionNode> m_test;
RefPtr<StatementContainer> m_consequent;
};

View file

@ -120,7 +120,7 @@ public:
}
virtual ASTNodeType type() { return ASTNodeType::SwitchStatement; }
protected:
private:
RefPtr<ExpressionNode> m_discriminant;
RefPtr<StatementContainer> m_casesA;
RefPtr<StatementNode> m_default;

View file

@ -55,7 +55,7 @@ public:
RELEASE_ASSERT_NOT_REACHED();
}
protected:
private:
RefPtr<Node> m_expr;
RefPtr<Node> m_quasi;
};

View file

@ -88,7 +88,7 @@ public:
m_argument->iterateChildrenIdentifier(fn);
}
protected:
private:
RefPtr<ExpressionNode> m_argument;
};
}

View file

@ -51,7 +51,7 @@ public:
m_argument->iterateChildrenIdentifier(fn);
}
protected:
private:
RefPtr<Node> m_argument;
};
}

View file

@ -49,7 +49,7 @@ public:
void* operator new(size_t size);
void* operator new[](size_t size) = delete;
protected:
private:
FunctionEnvironmentRecord* m_targetRecord;
InterpretedCodeBlock* m_codeBlock;
TightVector<std::pair<SmallValue, AtomicString>, GCUtil::gc_malloc_ignore_off_page_allocator<std::pair<SmallValue, AtomicString>>> m_argumentPropertyInfo;

View file

@ -139,7 +139,7 @@ public:
void* operator new(size_t size);
void* operator new[](size_t size) = delete;
protected:
private:
Object* m_array;
size_t m_iteratorNextIndex;
Type m_type;

View file

@ -646,7 +646,7 @@ public:
}
void* operator new[](size_t size) = delete;
protected:
private:
Context* m_context;
FunctionObject* m_object;

View file

@ -390,6 +390,12 @@ private:
{
return m_isDataProperty;
}
bool m_isDataProperty : 1;
PresentAttribute m_property;
union {
Value m_value;
JSGetterSetter m_getterSetter;
};
protected:
void checkProperty()
@ -411,12 +417,6 @@ protected:
}
}
MAKE_STACK_ALLOCATED();
bool m_isDataProperty : 1;
PresentAttribute m_property;
union {
Value m_value;
JSGetterSetter m_getterSetter;
};
};
class ObjectGetResult {