Package org.intellij.erlang.psi

Examples of org.intellij.erlang.psi.ErlangRecordExpression


  }

  @Override
  public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
    PsiElement element = descriptor.getPsiElement();
    ErlangRecordExpression recordExpression = PsiTreeUtil.getParentOfType(element, ErlangRecordExpression.class);
    if (recordExpression != null) {
      PsiReference reference = recordExpression.getReferenceInternal();
      PsiElement resolve = reference != null ? reference.resolve() : null;
      if (resolve != null) {
        ErlangTypedRecordFields fields = ((ErlangRecordDefinition) resolve).getTypedRecordFields();
        if (fields != null) {
          String replace = fields.getText().replaceFirst("\\{", "").replace("}", "");
View Full Code Here

TOP

Related Classes of org.intellij.erlang.psi.ErlangRecordExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.