use of org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.RTypedSyntheticSymbol in project intellij-plugins by JetBrains.
the class MotionSymbolUtil method createStructFieldSymbols.
public static Symbol[] createStructFieldSymbols(final Module module, Symbol parent, Struct struct, String name) {
final String typeName = struct.getFieldType(name);
final RType type = getTypeByName(module, typeName);
final RTypedSyntheticSymbol reader = new RTypedSyntheticSymbol(module.getProject(), name, Type.FIELD_READER, parent, type, 0);
final RTypedSyntheticSymbol writer = new RTypedSyntheticSymbol(module.getProject(), name + "=", Type.FIELD_WRITER, parent, type, 1);
return new Symbol[] { reader, writer };
}
Aggregations